Browse Source

* fixed WebAssembly inline asm parsing bug for the global.get/global.set ID instruction

Nikolay Nikolov 1 year ago
parent
commit
5cfd214b68
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/wasm32/rawasmtext.pas

+ 1 - 0
compiler/wasm32/rawasmtext.pas

@@ -906,6 +906,7 @@ Unit rawasmtext;
                               result.ops:=1;
                               result.ops:=1;
                               result.operands[1].opr.typ:=OPR_SYMBOL;
                               result.operands[1].opr.typ:=OPR_SYMBOL;
                               result.operands[1].opr.symbol:=thlcgwasm(hlcg).RefStackPointerSym;
                               result.operands[1].opr.symbol:=thlcgwasm(hlcg).RefStackPointerSym;
+                              Consume(AS_ID);
                             end;
                             end;
                           else
                           else
                             internalerror(2024072002);
                             internalerror(2024072002);