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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/Inlining.cpp b/src/passes/Inlining.cpp
index 7c51e78cb..f4baf706d 100644
--- a/src/passes/Inlining.cpp
+++ b/src/passes/Inlining.cpp
@@ -293,7 +293,7 @@ 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.isRef() && !type.isNullable()) {
+ 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
// any value we set here would not be observed anyhow.