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 a972c05fb..6552cfec0 100644
--- a/src/passes/ConstHoisting.cpp
+++ b/src/passes/ConstHoisting.cpp
@@ -99,7 +99,8 @@ private:
case Type::exnref:
case Type::anyref:
case Type::eqref:
- case Type::i31ref: {
+ case Type::i31ref:
+ case Type::dataref: {
return false;
}
case Type::none: