diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-27 21:49:34 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-27 21:49:34 +0000 |
commit | 5a4e2a47b3444bf92caffcbd2371cf18845d83ba (patch) | |
tree | a96ccee3f05cb01e3111ecab8626d4089c6c947f /include | |
parent | b82eaa182359ab3e666371cf64d424fded0e0c2a (diff) | |
download | external_llvm-5a4e2a47b3444bf92caffcbd2371cf18845d83ba.zip external_llvm-5a4e2a47b3444bf92caffcbd2371cf18845d83ba.tar.gz external_llvm-5a4e2a47b3444bf92caffcbd2371cf18845d83ba.tar.bz2 |
Order unsigned before signed, for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77257 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Operator.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/llvm/Operator.h b/include/llvm/Operator.h index 452e129..932c2ac 100644 --- a/include/llvm/Operator.h +++ b/include/llvm/Operator.h @@ -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 { + /// hasNoUnsignedOverflow - Test whether this operation is known to never + /// undergo unsigned overflow. + bool hasNoUnsignedOverflow() const { return SubclassOptionalData & (1 << 0); } - void setHasNoSignedOverflow(bool B) { + void setHasNoUnsignedOverflow(bool B) { SubclassOptionalData = (SubclassOptionalData & ~(1 << 0)) | (B << 0); } - /// hasNoUnsignedOverflow - Test whether this operation is known to never - /// undergo unsigned overflow. - bool hasNoUnsignedOverflow() const { + /// hasNoSignedOverflow - Test whether this operation is known to never + /// undergo signed overflow. + bool hasNoSignedOverflow() const { return SubclassOptionalData & (1 << 1); } - void setHasNoUnsignedOverflow(bool B) { + void setHasNoSignedOverflow(bool B) { SubclassOptionalData = (SubclassOptionalData & ~(1 << 1)) | (B << 1); } |