mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-19 17:47:38 +00:00
Empty DIType represents void. In this case no need to construct any type DIE.
llvm-svn: 62861
This commit is contained in:
parent
c971f3cf5b
commit
37b2017172
@ -1662,10 +1662,8 @@ private:
|
||||
|
||||
/// AddType - Add a new type attribute to the specified entity.
|
||||
void AddType(CompileUnit *DW_Unit, DIE *Entity, DIType Ty) {
|
||||
if (Ty.isNull()) {
|
||||
AddBasicType(Entity, DW_Unit, "", DW_ATE_signed, sizeof(int32_t));
|
||||
if (Ty.isNull())
|
||||
return;
|
||||
}
|
||||
|
||||
// Check for pre-existence.
|
||||
DIEntry *&Slot = DW_Unit->getDIEntrySlotFor(Ty.getGV());
|
||||
|
Loading…
Reference in New Issue
Block a user