summaryrefslogtreecommitdiff
path: root/wasm/Driver.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-02-15 20:49:22 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-02-15 20:49:22 +0000
commit38e89f16767351c482670d10ce0a76f85fd327fb (patch)
tree454466a911e2ff69b599d8e5c627075df7c8eabe /wasm/Driver.cpp
parent774c33a182f027f50320a37542a6b47a0f9caeb3 (diff)
Notes
Diffstat (limited to 'wasm/Driver.cpp')
-rw-r--r--wasm/Driver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/wasm/Driver.cpp b/wasm/Driver.cpp
index fab4c0c4ed8b..ade15a19f66e 100644
--- a/wasm/Driver.cpp
+++ b/wasm/Driver.cpp
@@ -434,7 +434,9 @@ static Symbol *handleUndefined(StringRef Name) {
static UndefinedGlobal *
createUndefinedGlobal(StringRef Name, llvm::wasm::WasmGlobalType *Type) {
auto *Sym =
- cast<UndefinedGlobal>(Symtab->addUndefinedGlobal(Name, 0, nullptr, Type));
+ cast<UndefinedGlobal>(Symtab->addUndefinedGlobal(Name, Name,
+ DefaultModule, 0,
+ nullptr, Type));
Config->AllowUndefinedSymbols.insert(Sym->getName());
Sym->IsUsedInRegularObj = true;
return Sym;