From e8137784824bb2578b8ecbe2f76e09e20a1e5442 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 12 Jul 2021 12:31:14 -0700 Subject: [Wasm GC] Add a isNonNullable() convenience method. NFC (#3978) --- src/passes/RedundantSetElimination.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/passes/RedundantSetElimination.cpp') diff --git a/src/passes/RedundantSetElimination.cpp b/src/passes/RedundantSetElimination.cpp index ccf6e6ac2..f42119a92 100644 --- a/src/passes/RedundantSetElimination.cpp +++ b/src/passes/RedundantSetElimination.cpp @@ -190,7 +190,7 @@ struct RedundantSetElimination std::cout << "new param value for " << i << '\n'; #endif start[i] = getUniqueValue(); - } else if (type.isRef() && !type.isNullable()) { + } else if (type.isNonNullable()) { #ifdef RSE_DEBUG std::cout << "new unique value for non-nullable " << i << '\n'; #endif -- cgit v1.2.3