[dsymutil] Simplify a lazy-init condition/expression
llvm-svn: 288423
This commit is contained in:
parent
aba0edb340
commit
4aa8175a92
|
@ -2716,10 +2716,9 @@ DIE *DwarfLinker::DIECloner::cloneDIE(
|
|||
if (!Die) {
|
||||
// The DIE might have been already created by a forward reference
|
||||
// (see cloneDieReferenceAttribute()).
|
||||
if (Info.Clone)
|
||||
Die = Info.Clone;
|
||||
else
|
||||
Die = Info.Clone = DIE::get(DIEAlloc, dwarf::Tag(InputDIE.getTag()));
|
||||
if (!Info.Clone)
|
||||
Info.Clone = DIE::get(DIEAlloc, dwarf::Tag(InputDIE.getTag()));
|
||||
Die = Info.Clone;
|
||||
}
|
||||
|
||||
assert(Die->getTag() == InputDIE.getTag());
|
||||
|
|
Loading…
Reference in New Issue