[llvm] r340383 - [AST] Reorder code to reduce a future patch diff [NFC]
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 21 20:33:56 PDT 2018
Author: reames
Date: Tue Aug 21 20:33:55 2018
New Revision: 340383
URL: http://llvm.org/viewvc/llvm-project?rev=340383&view=rev
Log:
[AST] Reorder code to reduce a future patch diff [NFC]
Modified:
llvm/trunk/lib/Analysis/AliasSetTracker.cpp
Modified: llvm/trunk/lib/Analysis/AliasSetTracker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/AliasSetTracker.cpp?rev=340383&r1=340382&r2=340383&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/AliasSetTracker.cpp (original)
+++ llvm/trunk/lib/Analysis/AliasSetTracker.cpp Tue Aug 21 20:33:55 2018
@@ -253,12 +253,12 @@ bool AliasSet::aliasesUnknownInst(const
}
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]);
More information about the llvm-commits
mailing list