summaryrefslogtreecommitdiff
path: root/src/ir/module-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/module-utils.h')
-rw-r--r--src/ir/module-utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ir/module-utils.h b/src/ir/module-utils.h
index b488db765..66d3a1015 100644
--- a/src/ir/module-utils.h
+++ b/src/ir/module-utils.h
@@ -92,6 +92,8 @@ inline Global* copyGlobal(Global* global, Module& out) {
ret->name = global->name;
ret->type = global->type;
ret->mutable_ = global->mutable_;
+ ret->module = global->module;
+ ret->base = global->base;
if (global->imported()) {
ret->init = nullptr;
} else {