summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-01-23 19:16:28 +0000
committerEric Christopher <echristo@gmail.com>2014-01-23 19:16:28 +0000
commit4c96056acd7b4fde857029971fb38997f9bf6260 (patch)
treee00c0cb368ccb6ddb32bb0ad3a03a2f315bf83b1 /llvm/lib
parent2ed88803462643c0bc6723d0388973187c2a218b (diff)
downloadbcm5719-llvm-4c96056acd7b4fde857029971fb38997f9bf6260.tar.gz
bcm5719-llvm-4c96056acd7b4fde857029971fb38997f9bf6260.zip
Avoid emitting a DWARF type attribute for an ObjC property of type
void. Patch by Scott Talbot. llvm-svn: 199924
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
index bb2ca6edb07..4f55d89ce2c 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
@@ -1209,7 +1209,8 @@ void DwarfUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) {
ElemDie = createAndAddDIE(Property.getTag(), Buffer);
StringRef PropertyName = Property.getObjCPropertyName();
addString(ElemDie, dwarf::DW_AT_APPLE_property_name, PropertyName);
- addType(ElemDie, Property.getType());
+ if (Property.getType())
+ addType(ElemDie, Property.getType());
addSourceLine(ElemDie, Property);
StringRef GetterName = Property.getObjCPropertyGetterName();
if (!GetterName.empty())
OpenPOWER on IntegriCloud