[llvm] r248464 - Add some NDEBUG checks I accidentally dropped in r248462

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 22:20:04 PDT 2015


Author: bogner
Date: Thu Sep 24 00:20:04 2015
New Revision: 248464

URL: http://llvm.org/viewvc/llvm-project?rev=248464&view=rev
Log:
Add some NDEBUG checks I accidentally dropped in r248462

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=248464&r1=248463&r2=248464&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp Thu Sep 24 00:20:04 2015
@@ -619,6 +619,7 @@ 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)
@@ -636,6 +637,7 @@ static const Function *getParent(const V
 
   return nullptr;
 }
+#endif
 
 static bool notDifferentParent(const Value *O1, const Value *O2) {
 




More information about the llvm-commits mailing list