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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/passes/ConstHoisting.cpp b/src/passes/ConstHoisting.cpp
index e3583d3bb..3b34751ff 100644
--- a/src/passes/ConstHoisting.cpp
+++ b/src/passes/ConstHoisting.cpp
@@ -96,7 +96,8 @@ private:
case Type::v128:
case Type::funcref:
case Type::externref:
- case Type::exnref: {
+ case Type::exnref:
+ case Type::anyref: {
return false;
}
case Type::none: