summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm/wasm-type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp
index d4f38cc2c..998d1a96b 100644
--- a/src/wasm/wasm-type.cpp
+++ b/src/wasm/wasm-type.cpp
@@ -1512,7 +1512,7 @@ HeapType TypeBounder::lub(HeapType a, HeapType b) {
}
currA = nextA;
}
- if (currB) {
+ if (nextB) {
if (!seen.insert(nextB).second) {
return HeapType(uintptr_t(nextB));
}