Fix VC++ warning that bools cannot be ORed.

llvm-svn: 24319
This commit is contained in:
Jeff Cohen 2005-11-12 00:59:39 +00:00
parent 566c6d987a
commit 7b4144a6d4

View File

@ -948,7 +948,7 @@ void BytecodeWriter::outputModuleInfoBlock(const Module *M) {
// 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);
}