[llvm] r292057 - These two functions should be const. We often could detect it but this just makes it always true.
Daniel Berlin via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 14 23:40:51 PST 2017
Author: dannyb
Date: Sun Jan 15 01:40:51 2017
New Revision: 292057
URL: http://llvm.org/viewvc/llvm-project?rev=292057&view=rev
Log:
These two functions should be const. We often could detect it but this just makes it always true.
Modified:
llvm/trunk/include/llvm/IR/InstrTypes.h
Modified: llvm/trunk/include/llvm/IR/InstrTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/InstrTypes.h?rev=292057&r1=292056&r2=292057&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/InstrTypes.h (original)
+++ llvm/trunk/include/llvm/IR/InstrTypes.h Sun Jan 15 01:40:51 2017
@@ -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);
}
More information about the llvm-commits
mailing list