summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-emscripten.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-emscripten.cpp')
-rw-r--r--src/wasm/wasm-emscripten.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp
index 680e145b4..a66c8d1ac 100644
--- a/src/wasm/wasm-emscripten.cpp
+++ b/src/wasm/wasm-emscripten.cpp
@@ -241,6 +241,9 @@ Function* EmscriptenGlueGenerator::generateAssignGOTEntriesFunction() {
} else {
ImportInfo info(wasm);
f = info.getImportedFunction(ENV, g->base);
+ if (!f) {
+ Fatal() << "GOT.func entry with no import/export: " << g->base;
+ }
}
Name getter((std::string("fp$") + g->base.c_str() + std::string("$") + getSig(f)).c_str());