summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode
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
commite8fe2c2418a20dcf159743ab55d316df6f8f5e73 (patch)
tree1e875e32ccd5737863985fe98b1cd702f9ef3842 /llvm/lib/Bytecode
parent315157df62c9835ef03b149c59c132365a35568e (diff)
downloadbcm5719-llvm-e8fe2c2418a20dcf159743ab55d316df6f8f5e73.tar.gz
bcm5719-llvm-e8fe2c2418a20dcf159743ab55d316df6f8f5e73.zip
Add back a missing paren
llvm-svn: 16965
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r--llvm/lib/Bytecode/Writer/Writer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp
index c836300f248..605e5121f29 100644
--- a/llvm/lib/Bytecode/Writer/Writer.cpp
+++ b/llvm/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 );
OpenPOWER on IntegriCloud