mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 08:08:01 +00:00
Order unsigned before signed, for consistency.
llvm-svn: 77257
This commit is contained in:
parent
89c8a88449
commit
daf5eafa6a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user