aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Operator.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Operator.h')
-rw-r--r--include/llvm/Operator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Operator.h b/include/llvm/Operator.h
index d848417..3aae586 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; }