[dsymutil] Simplify a lazy-init condition/expression

llvm-svn: 288423
This commit is contained in:
David Blaikie 2016-12-01 22:04:16 +00:00
parent aba0edb340
commit 4aa8175a92
1 changed files with 3 additions and 4 deletions

View File

@ -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());