Index "12" holds the vtable, not "9".
Fixes lots of gdb testsuite failures. llvm-svn: 150797
This commit is contained in:
parent
b23b32e43b
commit
2939e6e136
|
@ -1798,7 +1798,7 @@ llvm::DIType CGDebugInfo::CreateLimitedType(const RecordType *Ty) {
|
|||
else if (CXXDecl->isDynamicClass())
|
||||
ContainingType = RealDecl;
|
||||
|
||||
RealDecl->replaceOperandWith(9, ContainingType);
|
||||
RealDecl->replaceOperandWith(12, ContainingType);
|
||||
}
|
||||
return llvm::DIType(RealDecl);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue