Reference RegionPass to stop it being eliminated.
[oota-llvm.git] / include / llvm / Operator.h
index 60865aa8ad45113c1dc741dbacc8d6f46f252cfd..3aae586f1448c778bdfa59e6b8dd865846b28ac2 100644 (file)
@@ -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 (SubclassOptionalData & NoSignedWrap) != 0;
   }
 
   static inline bool classof(const OverflowingBinaryOperator *) { return true; }