Skip to content

Commit c4048b4

Browse files
committed
Merge from mainline.
Empty DIType represents void. In this case no need to construct any type DIE. llvm-svn: 63206
1 parent 67ec7f0 commit c4048b4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,10 +1662,8 @@ class DwarfDebug : public Dwarf {
16621662

16631663
/// AddType - Add a new type attribute to the specified entity.
16641664
void AddType(CompileUnit *DW_Unit, DIE *Entity, DIType Ty) {
1665-
if (Ty.isNull()) {
1666-
AddBasicType(Entity, DW_Unit, "", DW_ATE_signed, sizeof(int32_t));
1665+
if (Ty.isNull())
16671666
return;
1668-
}
16691667

16701668
// Check for pre-existence.
16711669
DIEntry *&Slot = DW_Unit->getDIEntrySlotFor(Ty.getGV());

0 commit comments

Comments
 (0)