fix a comment bug Reid noticed

llvm-svn: 35864
This commit is contained in:
Chris Lattner 2007-04-10 16:33:06 +00:00
parent ada3ca2234
commit b05e1727ef
1 changed files with 3 additions and 2 deletions

View File

@ -281,8 +281,9 @@ public:
return *this != 0;
}
/// getLimitedValue - Return this value, or return all ones if it is too large
/// to return.
/// getLimitedValue - If this value is smaller than the specified limit,
/// return it, otherwise return the limit value. This causes the value
/// to saturate to the limit.
uint64_t getLimitedValue(uint64_t Limit = ~0ULL) const {
return (getActiveBits() > 64 || getZExtValue() > Limit) ?
Limit : getZExtValue();