summaryrefslogtreecommitdiff
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-08-25 20:18:22 +0000
committerDavid Greene <greened@obbligato.org>2011-08-25 20:18:22 +0000
commit32c371f0dff32dc127f6701c8737aad46b207d1e (patch)
treec9cb2a1a540ae970fc9b81d69bf6477a5b12aed4 /include/llvm/Constants.h
parent99906830e82cf70dbcbed22237c7bd24f9d9ffdb (diff)
downloadllvm-32c371f0dff32dc127f6701c8737aad46b207d1e.tar.gz
llvm-32c371f0dff32dc127f6701c8737aad46b207d1e.tar.bz2
llvm-32c371f0dff32dc127f6701c8737aad46b207d1e.tar.xz
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
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index e168979bea..6545a3fedb 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;
}