summaryrefslogtreecommitdiff
path: root/src/passes/RedundantSetElimination.cpp
diff options
context:
space:
mode:
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