[llvm] r248465 - Fix a think-o in which functions these should surround
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 23 22:29:32 PDT 2015
Author: bogner
Date: Thu Sep 24 00:29:31 2015
New Revision: 248465
URL: http://llvm.org/viewvc/llvm-project?rev=248465&view=rev
Log:
Fix a think-o in which functions these should surround
Modified:
llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp?rev=248465&r1=248464&r2=248465&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp Thu Sep 24 00:29:31 2015
@@ -619,7 +619,6 @@ ModRefInfo BasicAAResult::getArgModRefIn
return AAResultBase::getArgModRefInfo(CS, ArgIdx);
}
-#ifndef NDEBUG
static bool isAssumeIntrinsic(ImmutableCallSite CS) {
const IntrinsicInst *II = dyn_cast<IntrinsicInst>(CS.getInstruction());
if (II && II->getIntrinsicID() == Intrinsic::assume)
@@ -628,6 +627,7 @@ static bool isAssumeIntrinsic(ImmutableC
return false;
}
+#ifndef NDEBUG
static const Function *getParent(const Value *V) {
if (const Instruction *inst = dyn_cast<Instruction>(V))
return inst->getParent()->getParent();
@@ -637,7 +637,6 @@ static const Function *getParent(const V
return nullptr;
}
-#endif
static bool notDifferentParent(const Value *O1, const Value *O2) {
@@ -646,6 +645,7 @@ static bool notDifferentParent(const Val
return !F1 || !F2 || F1 == F2;
}
+#endif
AliasResult BasicAAResult::alias(const MemoryLocation &LocA,
const MemoryLocation &LocB) {
More information about the llvm-commits
mailing list