projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9990683
)
Constify Comparison
author
David Greene
<greened@obbligato.org>
Thu, 25 Aug 2011 20:18:22 +0000
(20:18 +0000)
committer
David Greene
<greened@obbligato.org>
Thu, 25 Aug 2011 20:18:22 +0000
(20:18 +0000)
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
patch
|
blob
|
history
diff --git
a/include/llvm/Constants.h
b/include/llvm/Constants.h
index e168979beaa14469e77f33ef3c284ce8168fb1b0..6545a3fedb9220b8c709ac4facbac885e870bedc 100644
(file)
--- 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;
}