Index "12" holds the vtable, not "9".
Fixes lots of gdb testsuite failures.
llvm-svn: 150797
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 1f733be..784e018 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/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);
}