Index "12" holds the vtable, not "9".
Fixes lots of gdb testsuite failures.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150797 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 1f733be..784e018 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -1798,7 +1798,7 @@
else if (CXXDecl->isDynamicClass())
ContainingType = RealDecl;
- RealDecl->replaceOperandWith(9, ContainingType);
+ RealDecl->replaceOperandWith(12, ContainingType);
}
return llvm::DIType(RealDecl);
}