]> granicus.if.org Git - clang/commitdiff
Index "12" holds the vtable, not "9".
authorEric Christopher <echristo@apple.com>
Fri, 17 Feb 2012 07:09:48 +0000 (07:09 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 17 Feb 2012 07:09:48 +0000 (07:09 +0000)
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

index 1f733be1a7d150f994e64251e1f92ddfd9903a9a..784e018be993c8a039207858658be6218198df19 100644 (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);
 }