diff options
Diffstat (limited to 'src/passes/GlobalStructInference.cpp')
-rw-r--r-- | src/passes/GlobalStructInference.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/GlobalStructInference.cpp b/src/passes/GlobalStructInference.cpp index ceee8b02d..9fc906971 100644 --- a/src/passes/GlobalStructInference.cpp +++ b/src/passes/GlobalStructInference.cpp @@ -170,7 +170,7 @@ struct GlobalStructInference : public Pass { // empty, below. typeGlobals.erase(type); - auto super = type.getSuperType(); + auto super = type.getDeclaredSuperType(); if (!super) { break; } @@ -184,7 +184,7 @@ struct GlobalStructInference : public Pass { for (auto& [type, globals] : typeGlobalsCopy) { auto curr = type; while (1) { - auto super = curr.getSuperType(); + auto super = curr.getDeclaredSuperType(); if (!super) { break; } |