From 32c371f0dff32dc127f6701c8737aad46b207d1e Mon Sep 17 00:00:00 2001 From: David Greene Date: Thu, 25 Aug 2011 20:18:22 +0000 Subject: [PATCH] Constify Comparison Make ConstantInt::uge() const so it may be used in const contexts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138579 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Constants.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index e168979beaa..6545a3fedb9 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -203,7 +203,7 @@ public: /// value. /// @returns true iff this constant is greater or equal to the given number. /// @brief Determine if the value is greater or equal to the given number. - bool uge(uint64_t Num) { + bool uge(uint64_t Num) const { return Val.getActiveBits() > 64 || Val.getZExtValue() >= Num; } -- 2.34.1