diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2010-09-23 16:59:44 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2010-09-23 16:59:44 +0000 |
commit | 32d2c5de6419a4f8dec260d9ab557004534e0970 (patch) | |
tree | 0c80a4546bef8da70317ec57c4580bc2cfe66e44 /include/llvm/Operator.h | |
parent | df30bdb3a735a81b4182d80b870bc39846824396 (diff) |
Avoid warnings about conversions to `bool' in MS compilers.
Patch by Nathan Jeffords!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114662 91177308-0d34-0410-b5e6-96231b3b80d8
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; } |