diff options
Diffstat (limited to 'src/passes/SignatureRefining.cpp')
-rw-r--r-- | src/passes/SignatureRefining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/SignatureRefining.cpp b/src/passes/SignatureRefining.cpp index 281214e32..51aef429b 100644 --- a/src/passes/SignatureRefining.cpp +++ b/src/passes/SignatureRefining.cpp @@ -145,7 +145,7 @@ struct SignatureRefining : public Pass { // TypeRefining, and perhaps we can unify this pass with that. TODO SubTypes subTypes(*module); for (auto& [type, info] : allInfo) { - if (!subTypes.getStrictSubTypes(type).empty()) { + if (!subTypes.getImmediateSubTypes(type).empty()) { info.canModify = false; } else if (type.getSuperType()) { // Also avoid modifying types with supertypes, as we do not handle |