[llvm-commits] CVS: llvm/include/llvm/Instructions.h

Jeff Cohen jeffc at jolt-lang.org
Fri May 6 19:44:15 PDT 2005



Changes in directory llvm/include/llvm:

Instructions.h updated: 1.20 -> 1.21
---
Log message:

Silence VC++ warnings about unsafe mixing of ints and bools with the | operator.


---
Diffs of the changes:  (+1 -1)

 Instructions.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/include/llvm/Instructions.h
diff -u llvm/include/llvm/Instructions.h:1.20 llvm/include/llvm/Instructions.h:1.21
--- llvm/include/llvm/Instructions.h:1.20	Fri May  6 15:26:24 2005
+++ llvm/include/llvm/Instructions.h	Fri May  6 21:44:04 2005
@@ -505,7 +505,7 @@
 
   bool isTailCall() const           { return SubclassData & 1; }
   void setTailCall(bool isTailCall = true) {
-    SubclassData = (SubclassData & ~1) | isTailCall;
+    SubclassData = (SubclassData & ~1) | unsigned(isTailCall);
   }
 
   /// getCallingConv/setCallingConv - Get or set the calling convention of this






More information about the llvm-commits mailing list