summaryrefslogtreecommitdiff
path: root/src/ir/global-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/global-utils.h')
-rw-r--r--src/ir/global-utils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ir/global-utils.h b/src/ir/global-utils.h
index 053eb0456..0d91dcbb5 100644
--- a/src/ir/global-utils.h
+++ b/src/ir/global-utils.h
@@ -63,7 +63,8 @@ inline bool canInitializeGlobal(const Expression* curr) {
return true;
}
return Properties::isSingleConstantExpression(curr) ||
- curr->is<GlobalGet>() || curr->is<RttCanon>() || curr->is<RttSub>();
+ curr->is<GlobalGet>() || curr->is<RttCanon>() || curr->is<RttSub>() ||
+ curr->is<StructNew>();
}
} // namespace GlobalUtils