summaryrefslogtreecommitdiff
path: root/src/wasm/literal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/literal.cpp')
-rw-r--r--src/wasm/literal.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp
index 650318be3..d60e2f8a9 100644
--- a/src/wasm/literal.cpp
+++ b/src/wasm/literal.cpp
@@ -463,6 +463,9 @@ bool Literal::operator==(const Literal& other) const {
if (type.getHeapType().isMaybeShared(HeapType::i31)) {
return i32 == other.i32;
}
+ if (type.getHeapType().isMaybeShared(HeapType::ext)) {
+ return internalize() == other.internalize();
+ }
WASM_UNREACHABLE("unexpected type");
}
WASM_UNREACHABLE("unexpected type");