From: Daniel Berlin Date: Sun, 15 Jan 2017 07:40:51 +0000 (+0000) Subject: These two functions should be const. We often could detect it but this just makes... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9aeadfb99df7fd91e472f6b32a4e030280a70a74;p=llvm These two functions should be const. We often could detect it but this just makes it always true. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292057 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/InstrTypes.h b/include/llvm/IR/InstrTypes.h index f2abbec64fe..518094735d7 100644 --- a/include/llvm/IR/InstrTypes.h +++ b/include/llvm/IR/InstrTypes.h @@ -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); }