From f1136a48518378eb3454f5da4f05c686755b5819 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Mon, 2 Aug 2021 17:58:37 -0400 Subject: Fix a bug in nominal LUB calculation (#4046) The wrong variable was null checked, leading to segfaults. --- src/wasm/wasm-type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)); } -- cgit v1.2.3