mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
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:
parent
b82eaa1823
commit
5a4e2a47b3
@ -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