From 1e009d594325390eda1e3c89e4930b30d8b828dc Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 17 Feb 2012 07:09:48 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CGDebugInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 1f733be1a7..784e018be9 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -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); } -- 2.50.1