The guaranteed alignment of ptr+offset is only the minimum of
[oota-llvm.git] / include / llvm / Instructions.h
index ec03030865261985852abdece65ced5fd18d5619..a4fcb820f4354c0c9b1387502c9c0786c55942a3 100644 (file)
@@ -256,7 +256,7 @@ public:
   /// setVolatile - Specify whether this is a volatile load or not.
   ///
   void setVolatile(bool V) { 
-    SubclassData = (SubclassData & ~1) | V
+    SubclassData = (SubclassData & ~1) | (V ? 1 : 0)
   }
 
   virtual LoadInst *clone() const;
@@ -324,7 +324,7 @@ public:
   /// setVolatile - Specify whether this is a volatile load or not.
   ///
   void setVolatile(bool V) { 
-    SubclassData = (SubclassData & ~1) | V
+    SubclassData = (SubclassData & ~1) | (V ? 1 : 0)
   }
 
   /// Transparently provide more efficient getOperand methods.