summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-05-05 05:05:36 +0000
committerChris Lattner <sabre@nondot.org>2009-05-05 05:05:36 +0000
commitf216fd96fe34a9b18cd1b071b3ac62c1b8cf66f2 (patch)
tree8b54137b4598f7b6ff8152db7eda6939e37beb1c
parent362d8ae32856b169d5fc5b863c05444ba2c2f996 (diff)
downloadbcm5719-llvm-f216fd96fe34a9b18cd1b071b3ac62c1b8cf66f2.tar.gz
bcm5719-llvm-f216fd96fe34a9b18cd1b071b3ac62c1b8cf66f2.zip
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 llvm-svn: 70966
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 97153379709..a720cbc7a4f 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud