Index "12" holds the vtable, not "9".

Fixes lots of gdb testsuite failures.

llvm-svn: 150797
This commit is contained in:
Eric Christopher 2012-02-17 07:09:48 +00:00
parent b23b32e43b
commit 2939e6e136
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}