diff options
Diffstat (limited to 'src/ast/import-utils.h')
-rw-r--r-- | src/ast/import-utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ast/import-utils.h b/src/ast/import-utils.h index d12c23182..ff7ca3b83 100644 --- a/src/ast/import-utils.h +++ b/src/ast/import-utils.h @@ -25,13 +25,13 @@ namespace wasm { namespace ImportUtils { // find an import by the module.base that is being imported. // return the internal name - inline Name getImport(Module& wasm, Name module, Name base) { + inline Import* getImport(Module& wasm, Name module, Name base) { for (auto& import : wasm.imports) { if (import->module == module && import->base == base) { - return import->name; + return import.get(); } } - return Name(); + return nullptr; } }; |