Skip to content

Commit 87a6512

Browse files
authored
Remove reference to old __wasm_nullptr function (#1928)
1 parent 23ce677 commit 87a6512

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/wasm/wasm-emscripten.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ cashew::IString EM_JS_PREFIX("__em_js__");
3636
static Name STACK_SAVE("stackSave"),
3737
STACK_RESTORE("stackRestore"),
3838
STACK_ALLOC("stackAlloc"),
39-
STACK_INIT("stack$init"),
40-
DUMMY_FUNC("__wasm_nullptr");
39+
STACK_INIT("stack$init");
4140

4241
void addExportedFunction(Module& wasm, Function* function) {
4342
wasm.addFunction(function);
@@ -181,9 +180,6 @@ void EmscriptenGlueGenerator::generateDynCallThunks() {
181180
tableSegmentData = wasm.table.segments[0].data;
182181
}
183182
for (const auto& indirectFunc : tableSegmentData) {
184-
if (indirectFunc == DUMMY_FUNC) {
185-
continue;
186-
}
187183
std::string sig = getSig(wasm.getFunction(indirectFunc));
188184
auto* funcType = ensureFunctionType(sig, &wasm);
189185
if (!sigs.insert(sig).second) continue; // Sig is already in the set

0 commit comments

Comments
 (0)