diff options
Diffstat (limited to 'src/wasm/literal.cpp')
-rw-r--r-- | src/wasm/literal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp index 40a1f9519..9d659f753 100644 --- a/src/wasm/literal.cpp +++ b/src/wasm/literal.cpp @@ -444,7 +444,7 @@ bool Literal::operator==(const Literal& other) const { return gcData == other.gcData; } assert(type.getHeapType().isBasic()); - if (type.getHeapType().getBasic(Unshared) == HeapType::i31) { + if (type.getHeapType().isMaybeShared(HeapType::i31)) { return i32 == other.i32; } WASM_UNREACHABLE("unexpected type"); |