]> granicus.if.org Git - llvm/commitdiff
These two functions should be const. We often could detect it but this just makes...
authorDaniel Berlin <dberlin@dberlin.org>
Sun, 15 Jan 2017 07:40:51 +0000 (07:40 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Sun, 15 Jan 2017 07:40:51 +0000 (07:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292057 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/InstrTypes.h

index f2abbec64fe61820c0299432274f290fe25cba13..518094735d72f71e10ac563fb3da556da6a4ce84 100644 (file)
@@ -1061,13 +1061,13 @@ public:
 
   /// @brief Determine if Pred1 implies Pred2 is true when two compares have
   /// matching operands.
-  bool isImpliedTrueByMatchingCmp(Predicate Pred2) {
+  bool isImpliedTrueByMatchingCmp(Predicate Pred2) const {
     return isImpliedTrueByMatchingCmp(getPredicate(), Pred2);
   }
 
   /// @brief Determine if Pred1 implies Pred2 is false when two compares have
   /// matching operands.
-  bool isImpliedFalseByMatchingCmp(Predicate Pred2) {
+  bool isImpliedFalseByMatchingCmp(Predicate Pred2) const {
     return isImpliedFalseByMatchingCmp(getPredicate(), Pred2);
   }