diff options
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r-- | src/s2wasm.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h index 70b6515ed..1edbb7b6b 100644 --- a/src/s2wasm.h +++ b/src/s2wasm.h @@ -1402,8 +1402,6 @@ public: std::map<std::string, size_t> ids; std::set<std::string> allSigs; - AsmConstWalker(S2WasmBuilder* parent) : parent(parent) {} - void visitCallImport(CallImport* curr) { if (curr->target == EMSCRIPTEN_ASM_CONST) { auto arg = curr->operands[0]->cast<Const>(); @@ -1455,7 +1453,8 @@ public: return code; } }; - AsmConstWalker walker(this); + AsmConstWalker walker; + walker.parent = this; walker.startWalk(&wasm); // print o << "\"asmConsts\": {"; |