summaryrefslogtreecommitdiff
path: root/src/passes/ConstHoisting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/ConstHoisting.cpp')
-rw-r--r--src/passes/ConstHoisting.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/passes/ConstHoisting.cpp b/src/passes/ConstHoisting.cpp
index dbb3853d8..4e8cd9910 100644
--- a/src/passes/ConstHoisting.cpp
+++ b/src/passes/ConstHoisting.cpp
@@ -91,9 +91,12 @@ private:
size = value.type.getByteSize();
break;
}
- case v128: // v128 not implemented yet
- case anyref: // anyref cannot have literals
- case exnref: { // exnref cannot have literals
+ // not implemented yet
+ case v128:
+ case funcref:
+ case anyref:
+ case nullref:
+ case exnref: {
return false;
}
case none: