[AST] Reorder code to reduce a future patch diff [NFC]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340383 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Philip Reames
2018-08-22 03:33:55 +00:00
parent 3df4cb15d7
commit c5f69a51a0
+3 -3
View File
@@ -253,12 +253,12 @@ bool AliasSet::aliasesUnknownInst(const Instruction *Inst,
}
Instruction* AliasSet::getUniqueInstruction() {
if (size() != 0)
// Can't track source of pointer, might be many instruction
return nullptr;
if (AliasAny)
// May have collapses alias set
return nullptr;
if (size() != 0)
// Can't track source of pointer, might be many instruction
return nullptr;
if (1 != UnknownInsts.size())
return nullptr;
return cast<Instruction>(UnknownInsts[0]);