diff options
Diffstat (limited to 'include/llvm/Operator.h')
-rw-r--r-- | include/llvm/Operator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Operator.h b/include/llvm/Operator.h index d848417625..3aae586f14 100644 --- a/include/llvm/Operator.h +++ b/include/llvm/Operator.h @@ -99,7 +99,7 @@ public: /// hasNoSignedWrap - Test whether this operation is known to never /// undergo signed overflow, aka the nsw property. bool hasNoSignedWrap() const { - return static_cast<bool>(SubclassOptionalData & NoSignedWrap); + return (SubclassOptionalData & NoSignedWrap) != 0; } static inline bool classof(const OverflowingBinaryOperator *) { return true; } |