diff options
Diffstat (limited to 'src/shell-interface.h')
-rw-r--r-- | src/shell-interface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shell-interface.h b/src/shell-interface.h index b4de73c6f..963832fed 100644 --- a/src/shell-interface.h +++ b/src/shell-interface.h @@ -99,7 +99,8 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface { // add spectest globals ModuleUtils::iterImportedGlobals(wasm, [&](Global* import) { if (import->module == SPECTEST && import->base.startsWith(GLOBAL)) { - switch (import->type.getSingle()) { + TODO_SINGLE_COMPOUND(import->type); + switch (import->type.getBasic()) { case Type::i32: globals[import->name] = {Literal(int32_t(666))}; break; |