X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FOperator.h;h=3aae586f1448c778bdfa59e6b8dd865846b28ac2;hb=24312230ada6f4cfa8776351dafb12eea8a81b33;hp=d84841762534621d3daf180ad929c32a61b3312a;hpb=32d2c5de6419a4f8dec260d9ab557004534e0970;p=oota-llvm.git diff --git a/include/llvm/Operator.h b/include/llvm/Operator.h index d8484176253..3aae586f144 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(SubclassOptionalData & NoSignedWrap); + return (SubclassOptionalData & NoSignedWrap) != 0; } static inline bool classof(const OverflowingBinaryOperator *) { return true; }