Add back a missing paren
authorChris Lattner <sabre@nondot.org>
Thu, 14 Oct 2004 01:57:28 +0000 (01:57 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 14 Oct 2004 01:57:28 +0000 (01:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16965 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Writer/Writer.cpp

index c836300f24818155cabc56cf3dc94b0f4288c835..605e5121f2921b62cdf1a08d432c88a6e3ab264e 100644 (file)
@@ -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 );