Browse Source

* write the unsupported parameter type in thlcgwam.g_procdef, when compiler is compiled with EXTDEBUG

git-svn-id: branches/wasm@47183 -
nickysn 4 years ago
parent
commit
99482051a8
1 changed files with 7 additions and 2 deletions
  1. 7 2
      compiler/wasm32/hlcgcpu.pas

+ 7 - 2
compiler/wasm32/hlcgcpu.pas

@@ -2104,8 +2104,13 @@ implementation
                   OS_F64:
                   OS_F64:
                     functype.add_param(wbt_f64);
                     functype.add_param(wbt_f64);
                 else
                 else
-                  // unsupported calleeside parameter type
-                  Internalerror(2019093001);
+                  begin
+{$ifdef EXTDEBUG}
+                    Writeln('Unsupported caller side parameter type: ', prm.paraloc[callerside].Size);
+{$endif EXTDEBUG}
+                    // unsupported calleeside parameter type
+                    Internalerror(2019093001);
+                  end;
                 end;
                 end;
               end;
               end;
           end;
           end;