diff options
Diffstat (limited to 'src/ir/global-utils.h')
-rw-r--r-- | src/ir/global-utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/global-utils.h b/src/ir/global-utils.h index 113a37f31..93e5c8a67 100644 --- a/src/ir/global-utils.h +++ b/src/ir/global-utils.h @@ -44,7 +44,7 @@ getGlobalInitializedToImport(Module& wasm, Name module, Name base) { // find a global inited to it Global* ret = nullptr; ModuleUtils::iterDefinedGlobals(wasm, [&](Global* defined) { - if (auto* init = defined->init->dynCast<GetGlobal>()) { + if (auto* init = defined->init->dynCast<GlobalGet>()) { if (init->name == imported) { ret = defined; } |