From: Chris Lattner Date: Tue, 5 May 2009 05:05:36 +0000 (+0000) Subject: Do not generate bogus location info for DW_TAG_inheritance X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e55b8a8b34ca1f401425cd14a32ba55d4f7aa73;p=clang 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70966 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 9715337970..a720cbc7a4 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -413,7 +413,7 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty, 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); }