summaryrefslogtreecommitdiff
path: root/src/ir
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir')
-rw-r--r--src/ir/type-updating.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir/type-updating.cpp b/src/ir/type-updating.cpp
index 658fabc83..2dc60d2df 100644
--- a/src/ir/type-updating.cpp
+++ b/src/ir/type-updating.cpp
@@ -29,6 +29,9 @@ bool canHandleAsLocal(Type type) {
void handleNonDefaultableLocals(Function* func, Module& wasm) {
// Check if this is an issue.
+ if (wasm.features.hasGCNNLocals()) {
+ return;
+ }
bool hasNonNullable = false;
for (auto type : func->vars) {
if (type.isRef() && !type.isNullable()) {