mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
Fix VC++ warning that bools cannot be ORed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24319 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
06d9b4ab24
commit
277973bf23
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user