diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-11-12 00:59:39 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-11-12 00:59:39 +0000 |
commit | 93b3d8f415f607ff15ae5935a2a36b3919d47a27 (patch) | |
tree | bef8f4327f7cb14ad1ef5dd216e324cbb470c587 /llvm/lib | |
parent | cf1f782a2f5f217b4f0c556291c5a7f2275e521c (diff) | |
download | bcm5719-llvm-93b3d8f415f607ff15ae5935a2a36b3919d47a27.tar.gz bcm5719-llvm-93b3d8f415f607ff15ae5935a2a36b3919d47a27.zip |
Fix VC++ warning that bools cannot be ORed.
llvm-svn: 24319
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Bytecode/Writer/Writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp index 9ba475c9d3e..0441acbdca2 100644 --- a/llvm/lib/Bytecode/Writer/Writer.cpp +++ b/llvm/lib/Bytecode/Writer/Writer.cpp @@ -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); } |