mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
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
This commit is contained in:
parent
99906830e8
commit
32c371f0df
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user