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 60865aa8ad..d848417625 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 SubclassOptionalData & NoSignedWrap; + return static_cast<bool>(SubclassOptionalData & NoSignedWrap); } static inline bool classof(const OverflowingBinaryOperator *) { return true; } |