summaryrefslogtreecommitdiff
path: root/src/ir/struct-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/struct-utils.h')
-rw-r--r--src/ir/struct-utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/struct-utils.h b/src/ir/struct-utils.h
index 4e24aacf4..150061720 100644
--- a/src/ir/struct-utils.h
+++ b/src/ir/struct-utils.h
@@ -269,7 +269,7 @@ private:
if (toSuperTypes) {
// Propagate shared fields to the supertype.
- if (auto superType = type.getSuperType()) {
+ if (auto superType = type.getDeclaredSuperType()) {
auto& superInfos = combinedInfos[*superType];
auto& superFields = superType->getStruct().fields;
for (Index i = 0; i < superFields.size(); i++) {