summaryrefslogtreecommitdiff
path: root/src/passes/Inlining.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Inlining.cpp')
-rw-r--r--src/passes/Inlining.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/passes/Inlining.cpp b/src/passes/Inlining.cpp
index e81649bd2..36610a224 100644
--- a/src/passes/Inlining.cpp
+++ b/src/passes/Inlining.cpp
@@ -343,9 +343,9 @@ doInlining(Module* module, Function* into, const InliningAction& action) {
// zero-init value
for (Index i = 0; i < from->vars.size(); i++) {
auto type = from->vars[i];
- if (type.isNonNullable()) {
- // Non-nullable locals do not need to be zeroed out. They have no zero
- // value, and by definition should not be used before being written to, so
+ if (!LiteralUtils::canMakeZero(type)) {
+ // Non-zeroable locals do not need to be zeroed out. As they have no zero
+ // value they by definition should not be used before being written to, so
// any value we set here would not be observed anyhow.
continue;
}