Skip to content

Commit c896f7c

Browse files
committed
fix
1 parent 63f54be commit c896f7c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tools/execution-results.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,11 @@ struct LoggingExternalInterface : public ShellExternalInterface {
188188
} else if (import->base == "getTempRet0") {
189189
return {Literal(state.tempRet0)};
190190
}
191-
} else if (auto* inst = getImportInstance(import)) {
192-
return inst->callExport(import->base, arguments);
191+
} else if (linkedInstances.count(import->module)) {
192+
// This is from a recognized module.
193+
return getImportInstance(import)->callExport(import->base, arguments);
193194
}
195+
// Anything else, we ignore.
194196
std::cerr << "[LoggingExternalInterface ignoring an unknown import "
195197
<< import->module << " . " << import->base << '\n';
196198
return {};

0 commit comments

Comments
 (0)