diff options
author | Eric Christopher <echristo@gmail.com> | 2014-01-23 19:16:28 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-01-23 19:16:28 +0000 |
commit | c3b4897c4c94923b36eb7f72eab44c2472aa4050 (patch) | |
tree | 25ed293c3078bd4a4eaf74a8dc3b60c3678cdb2c /lib | |
parent | 415ae042c9a1964c7b61c39013cfc1b4a063f7d9 (diff) | |
download | llvm-c3b4897c4c94923b36eb7f72eab44c2472aa4050.tar.gz llvm-c3b4897c4c94923b36eb7f72eab44c2472aa4050.tar.bz2 llvm-c3b4897c4c94923b36eb7f72eab44c2472aa4050.tar.xz |
Avoid emitting a DWARF type attribute for an ObjC property of type
void.
Patch by Scott Talbot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index bb2ca6edb0..4f55d89ce2 100644 --- a/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/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()) |