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 | 299f30f0b846084991f9c2cb2adeb906a5d80195 (patch) | |
tree | a96ccee3f05cb01e3111ecab8626d4089c6c947f | |
parent | 898fc43a345605beacba3ff21570bea39fe6df2b (diff) | |
download | external_llvm-299f30f0b846084991f9c2cb2adeb906a5d80195.zip external_llvm-299f30f0b846084991f9c2cb2adeb906a5d80195.tar.gz external_llvm-299f30f0b846084991f9c2cb2adeb906a5d80195.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
-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); } |