projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06d9b4a
)
Fix VC++ warning that bools cannot be ORed.
author
Jeff Cohen
<jeffc@jolt-lang.org>
Sat, 12 Nov 2005 00:59:39 +0000
(
00:59
+0000)
committer
Jeff Cohen
<jeffc@jolt-lang.org>
Sat, 12 Nov 2005 00:59:39 +0000
(
00:59
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24319
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bytecode/Writer/Writer.cpp
patch
|
blob
|
history
diff --git
a/lib/Bytecode/Writer/Writer.cpp
b/lib/Bytecode/Writer/Writer.cpp
index 9ba475c9d3e14e33f35ed03925b3cb97a40f0f50..0441acbdca21137f2463258ee87283fa3f7cb050 100644
(file)
--- a/
lib/Bytecode/Writer/Writer.cpp
+++ b/
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);
}