summaryrefslogtreecommitdiff
path: root/src/passes/RedundantSetElimination.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-07-12 12:31:14 -0700
committerGitHub <noreply@github.com>2021-07-12 12:31:14 -0700
commite8137784824bb2578b8ecbe2f76e09e20a1e5442 (patch)
treecf0e790b55e8b639168c5c42d22c28c02fb746b7 /src/passes/RedundantSetElimination.cpp
parent22167e5c6e34773a9fbc52e11648a081d2731ca3 (diff)
downloadbinaryen-e8137784824bb2578b8ecbe2f76e09e20a1e5442.tar.gz
binaryen-e8137784824bb2578b8ecbe2f76e09e20a1e5442.tar.bz2
binaryen-e8137784824bb2578b8ecbe2f76e09e20a1e5442.zip
[Wasm GC] Add a isNonNullable() convenience method. NFC (#3978)
Diffstat (limited to 'src/passes/RedundantSetElimination.cpp')
-rw-r--r--src/passes/RedundantSetElimination.cpp2
1 files changed, 1 insertions, 1 deletions
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