Browse Source

* don't do anything in postprocess_code for WebAssembly inline asm routines

Nikolay Nikolov 1 year ago
parent
commit
65d4319dc2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/wasm32/cpupi.pas

+ 2 - 0
compiler/wasm32/cpupi.pas

@@ -984,6 +984,8 @@ implementation
         localslist: TAsmList;
         localslist: TAsmList;
         labels_resolved, has_goto: Boolean;
         labels_resolved, has_goto: Boolean;
       begin
       begin
+        if po_assembler in procdef.procoptions then
+          exit;
         check_goto_br_instructions(aktproccode,has_goto);
         check_goto_br_instructions(aktproccode,has_goto);
 
 
         localslist:=prepare_locals;
         localslist:=prepare_locals;