Skip to content

Commit 75aefd1

Browse files
committed
fix
1 parent dff17d7 commit 75aefd1

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/wasm/wasm-emscripten.cpp

+1-9
Original file line numberDiff line numberDiff line change
@@ -772,16 +772,8 @@ void AsmConstWalker::visitCall(Call* curr) {
772772
if (bin->op == AddInt32) {
773773
// In the dynamic linking case the address of the string constant
774774
// is the result of adding its offset to __memory_base.
775-
// In this case are only looking for the offset with the data segment so
775+
// In this case are only looking for the offset from __memory_base
776776
// the RHS of the addition is just what we want.
777-
if (auto* getglobal = bin->left->dynCast<GlobalGet>()) {
778-
// This should be the global.get of __memory_base
779-
} else if (auto* setlocal = bin->left->dynCast<LocalSet>()) {
780-
// If the LHS is a side effect operation such as LocalGet we need to
781-
// preserve this operation
782-
783-
}
784-
785777
arg = bin->right;
786778
continue;
787779
}

0 commit comments

Comments
 (0)