[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp

Jeff Cohen jeffc at jolt-lang.org
Fri Nov 11 16:59:50 PST 2005



Changes in directory llvm/lib/Bytecode/Writer:

Writer.cpp updated: 1.112 -> 1.113
---
Log message:

Fix VC++ warning that bools cannot be ORed.

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

 Writer.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.112 llvm/lib/Bytecode/Writer/Writer.cpp:1.113
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.112	Sun Nov  6 01:46:13 2005
+++ llvm/lib/Bytecode/Writer/Writer.cpp	Fri Nov 11 18:59:39 2005
@@ -948,7 +948,7 @@
       
       // The extension word has this format: bit 0 = has initializer, bit 1-3 =
       // linkage, bit 4-8 = alignment (log2), bits 10+ = future use.
-      unsigned ExtWord = I->hasInitializer() | (getEncodedLinkage(I) << 1) |
+      unsigned ExtWord = (unsigned)I->hasInitializer() | (getEncodedLinkage(I) << 1) |
                          ((Log2_32(I->getAlignment())+1) << 4);
       output_vbr(ExtWord);
     }






More information about the llvm-commits mailing list