diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp index 66fdf7f22f03c8af6f1681c8a953f847d7112b4e..a9b01df6e63f9aa2862f62789b0f83093d59550f 100644 --- a/llvm/lib/Analysis/AliasSetTracker.cpp +++ b/llvm/lib/Analysis/AliasSetTracker.cpp @@ -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(UnknownInsts[0]);