Order unsigned before signed, for consistency.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77257 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2009-07-27 21:49:34 +00:00
parent b82eaa1823
commit 5a4e2a47b3

View File

@ -66,21 +66,21 @@ public:
///
class OverflowingBinaryOperator : public Operator {
public:
/// hasNoSignedOverflow - Test whether this operation is known to never
/// undergo signed overflow.
bool hasNoSignedOverflow() const {
return SubclassOptionalData & (1 << 0);
}
void setHasNoSignedOverflow(bool B) {
SubclassOptionalData = (SubclassOptionalData & ~(1 << 0)) | (B << 0);
}
/// hasNoUnsignedOverflow - Test whether this operation is known to never
/// undergo unsigned overflow.
bool hasNoUnsignedOverflow() const {
return SubclassOptionalData & (1 << 1);
return SubclassOptionalData & (1 << 0);
}
void setHasNoUnsignedOverflow(bool B) {
SubclassOptionalData = (SubclassOptionalData & ~(1 << 0)) | (B << 0);
}
/// hasNoSignedOverflow - Test whether this operation is known to never
/// undergo signed overflow.
bool hasNoSignedOverflow() const {
return SubclassOptionalData & (1 << 1);
}
void setHasNoSignedOverflow(bool B) {
SubclassOptionalData = (SubclassOptionalData & ~(1 << 1)) | (B << 1);
}