summaryrefslogtreecommitdiff
path: root/src/passes/SignatureRefining.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/SignatureRefining.cpp')
-rw-r--r--src/passes/SignatureRefining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/SignatureRefining.cpp b/src/passes/SignatureRefining.cpp
index 6d2c243c2..24d120dda 100644
--- a/src/passes/SignatureRefining.cpp
+++ b/src/passes/SignatureRefining.cpp
@@ -148,7 +148,7 @@ struct SignatureRefining : public Pass {
for (auto& [type, info] : allInfo) {
if (!subTypes.getImmediateSubTypes(type).empty()) {
info.canModify = false;
- } else if (type.getSuperType()) {
+ } else if (type.getDeclaredSuperType()) {
// Also avoid modifying types with supertypes, as we do not handle
// contravariance here. That is, when we refine parameters we look for
// a more refined type, but the type must be *less* refined than the