[cfe-commits] r70981 - /cfe/branches/Apple/Dib/lib/CodeGen/CGDebugInfo.cpp

Mike Stump mrs at apple.com
Tue May 5 10:21:32 PDT 2009


Author: mrs
Date: Tue May  5 12:21:31 2009
New Revision: 70981

URL: http://llvm.org/viewvc/llvm-project?rev=70981&view=rev
Log:
Merge in 70966:

Do not generate bogus location info for DW_TAG_inheritance
DIEs.  We were generating a loc with line of 0 and a file.
These tags do not need locations at all, just remove it.
this fixes rdar://6852792 - Clang generates incorrect (and unnecessary) file and line info for DW_TAG_inheritance dies

Modified:
    cfe/branches/Apple/Dib/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/branches/Apple/Dib/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/Dib/lib/CodeGen/CGDebugInfo.cpp?rev=70981&r1=70980&r2=70981&view=diff

==============================================================================
--- cfe/branches/Apple/Dib/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/branches/Apple/Dib/lib/CodeGen/CGDebugInfo.cpp Tue May  5 12:21:31 2009
@@ -421,7 +421,7 @@
       getOrCreateType(M->getContext().getObjCInterfaceType(SClass), Unit);
     llvm::DIType InhTag = 
       DebugFactory.CreateDerivedType(llvm::dwarf::DW_TAG_inheritance,
-                                     Unit, "", Unit, 0, 0, 0,
+                                     Unit, "", llvm::DICompileUnit(), 0, 0, 0,
                                      0 /* offset */, 0, SClassTy);
     EltTys.push_back(InhTag);
   }





More information about the cfe-commits mailing list