mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-06 09:44:39 +00:00
Use an early return. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215363 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e20f611baf
commit
cb7da63124
@ -647,14 +647,15 @@ bool ModuleLinker::getComdatResult(const Comdat *SrcC,
|
||||
StringRef ComdatName = SrcC->getName();
|
||||
Module::ComdatSymTabType &ComdatSymTab = DstM->getComdatSymbolTable();
|
||||
Module::ComdatSymTabType::iterator DstCI = ComdatSymTab.find(ComdatName);
|
||||
if (DstCI != ComdatSymTab.end()) {
|
||||
const Comdat *DstC = &DstCI->second;
|
||||
Comdat::SelectionKind SSK = SrcC->getSelectionKind();
|
||||
Comdat::SelectionKind DSK = DstC->getSelectionKind();
|
||||
if (computeResultingSelectionKind(ComdatName, SSK, DSK, Result, LinkFromSrc))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
if (DstCI == ComdatSymTab.end())
|
||||
return false;
|
||||
|
||||
const Comdat *DstC = &DstCI->second;
|
||||
Comdat::SelectionKind SSK = SrcC->getSelectionKind();
|
||||
Comdat::SelectionKind DSK = DstC->getSelectionKind();
|
||||
return computeResultingSelectionKind(ComdatName, SSK, DSK, Result,
|
||||
LinkFromSrc);
|
||||
}
|
||||
|
||||
/// getLinkageResult - This analyzes the two global values and determines what
|
||||
|
Loading…
x
Reference in New Issue
Block a user