summaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-14 01:57:28 +0000
committerChris Lattner <sabre@nondot.org>2004-10-14 01:57:28 +0000
commit84d1ced4a986bfb7fa95494c6675c65ad65f1bc1 (patch)
tree9d7c45dfa1fc85a2e0a2bc39a0162091b0b552e0 /lib/Bytecode/Writer
parent1c765b0037c0e08baba40eeb30cc563b5a2fa667 (diff)
downloadllvm-84d1ced4a986bfb7fa95494c6675c65ad65f1bc1.tar.gz
llvm-84d1ced4a986bfb7fa95494c6675c65ad65f1bc1.tar.bz2
llvm-84d1ced4a986bfb7fa95494c6675c65ad65f1bc1.tar.xz
Add back a missing paren
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16965 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer')
-rw-r--r--lib/Bytecode/Writer/Writer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp
index c836300f24..605e5121f2 100644
--- a/lib/Bytecode/Writer/Writer.cpp
+++ b/lib/Bytecode/Writer/Writer.cpp
@@ -593,7 +593,7 @@ inline void BytecodeWriter::outputInstructionFormat3(const Instruction *I,
// 31-26: Operand #3
//
output(3 | (Opcode << 2) | (Type << 8) |
- (Slots[0] << 14) | (Slots[1] << 20) | (Slots[2] << 26);
+ (Slots[0] << 14) | (Slots[1] << 20) | (Slots[2] << 26));
}
void BytecodeWriter::outputInstruction(const Instruction &I) {
@@ -896,7 +896,7 @@ void BytecodeWriter::outputModuleInfoBlock(const Module *M) {
// Fields: bit0 = isConstant, bit1 = hasInitializer, bit2-4=Linkage,
// bit5+ = Slot # for type
- unsigned oSlot = ((unsigned)Slot << 5) | (getEncodedLinkage(I) << 2) |
+ unsigned oSlot = ((unsigned)Slot << 6) | (getEncodedLinkage(I) << 2) |
(I->hasInitializer() << 1) | (unsigned)I->isConstant();
output_vbr(oSlot );