Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 committed Oct 30, 2019
1 parent dff17d7 commit 75aefd1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/wasm/wasm-emscripten.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,16 +772,8 @@ void AsmConstWalker::visitCall(Call* curr) {
if (bin->op == AddInt32) {
// In the dynamic linking case the address of the string constant
// is the result of adding its offset to __memory_base.
// In this case are only looking for the offset with the data segment so
// In this case are only looking for the offset from __memory_base
// the RHS of the addition is just what we want.
if (auto* getglobal = bin->left->dynCast<GlobalGet>()) {
// This should be the global.get of __memory_base
} else if (auto* setlocal = bin->left->dynCast<LocalSet>()) {
// If the LHS is a side effect operation such as LocalGet we need to
// preserve this operation

}

arg = bin->right;
continue;
}
Expand Down

0 comments on commit 75aefd1

Please sign in to comment.