diff options
Diffstat (limited to 'src/passes/ConstHoisting.cpp')
-rw-r--r-- | src/passes/ConstHoisting.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/passes/ConstHoisting.cpp b/src/passes/ConstHoisting.cpp index 749a3361f..37799e8b8 100644 --- a/src/passes/ConstHoisting.cpp +++ b/src/passes/ConstHoisting.cpp @@ -95,6 +95,10 @@ private: // v128 not implemented yet return false; } + case except_ref: { + // except_ref cannot have literals + return false; + } case none: case unreachable: { WASM_UNREACHABLE(); |