@@ -1120,7 +1120,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1120
1120
}
1121
1121
1122
1122
llvm::DICompositeType *
1123
- createStructType (DebugTypeInfo DbgTy, NominalTypeDecl *Decl, Type BaseTy,
1123
+ createStructType (DebugTypeInfo DbgTy, NominalTypeDecl *Decl,
1124
1124
llvm::DIScope *Scope, llvm::DIFile *File, unsigned Line,
1125
1125
unsigned SizeInBits, unsigned AlignInBits,
1126
1126
llvm::DINode::DIFlags Flags, llvm::DIType *DerivedFrom,
@@ -1133,7 +1133,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1133
1133
SmallVector<llvm::Metadata *, 16 > Elements;
1134
1134
unsigned OffsetInBits = 0 ;
1135
1135
for (VarDecl *VD : Decl->getStoredProperties ()) {
1136
- auto memberTy = BaseTy ->getTypeOfMember (VD);
1136
+ auto memberTy = DbgTy. getType () ->getTypeOfMember (VD);
1137
1137
1138
1138
if (auto DbgTy = CompletedDebugTypeInfo::getFromTypeInfo (
1139
1139
VD->getInterfaceType (),
@@ -1876,7 +1876,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1876
1876
return createSpecializedStructOrClassType (
1877
1877
StructTy, Scope, L.File , L.Line , SizeInBits, AlignInBits,
1878
1878
Flags, MangledName);
1879
- return createStructType (DbgTy, Decl, StructTy, Scope, L.File , L.Line ,
1879
+ return createStructType (DbgTy, Decl, Scope, L.File , L.Line ,
1880
1880
SizeInBits, AlignInBits, Flags, nullptr ,
1881
1881
llvm::dwarf::DW_LANG_Swift, MangledName);
1882
1882
}
@@ -1911,7 +1911,7 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1911
1911
Flags, MangledName);
1912
1912
1913
1913
auto *DIType = createStructType (
1914
- DbgTy, Decl, ClassTy, Scope, File, L.Line , SizeInBits, AlignInBits,
1914
+ DbgTy, Decl, Scope, File, L.Line , SizeInBits, AlignInBits,
1915
1915
Flags, nullptr , llvm::dwarf::DW_LANG_Swift, MangledName);
1916
1916
assert (DIType && " Unexpected null DIType!" );
1917
1917
assert (DIType && " createStructType should never return null!" );
0 commit comments