Add a missing const qualifier on the context instruction. This somehow
authorChandler Carruth <chandlerc@gmail.com>
Thu, 24 Dec 2015 09:08:08 +0000 (09:08 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 24 Dec 2015 09:08:08 +0000 (09:08 +0000)
has always been missing. =/

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256371 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/InstructionSimplify.h
lib/Analysis/InstructionSimplify.cpp

index d44c5ff4078d137da24bdfab5ede2ebf2551cbf1..ed313dae9ab131d972c5082d6122f349ccf9721e 100644 (file)
@@ -207,7 +207,7 @@ namespace llvm {
                           const TargetLibraryInfo *TLI = nullptr,
                           const DominatorTree *DT = nullptr,
                           AssumptionCache *AC = nullptr,
-                          Instruction *CxtI = nullptr);
+                          const Instruction *CxtI = nullptr);
 
   /// SimplifyFCmpInst - Given operands for an FCmpInst, see if we can
   /// fold the result.  If not, this returns null.
index db17d886e4ba17e255344f7ece6586da75695428..b89ff268d11eeab379e85031502de3240fd49d0d 100644 (file)
@@ -3097,7 +3097,7 @@ Value *llvm::SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS,
                               const DataLayout &DL,
                               const TargetLibraryInfo *TLI,
                               const DominatorTree *DT, AssumptionCache *AC,
-                              Instruction *CxtI) {
+                              const Instruction *CxtI) {
   return ::SimplifyICmpInst(Predicate, LHS, RHS, Query(DL, TLI, DT, AC, CxtI),
                             RecursionLimit);
 }