[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Oct 13 18:57:40 PDT 2004



Changes in directory llvm/lib/Bytecode/Writer:

Writer.cpp updated: 1.80 -> 1.81
---
Log message:

Add back a missing paren


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.80 llvm/lib/Bytecode/Writer/Writer.cpp:1.81
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.80	Wed Oct 13 20:46:07 2004
+++ llvm/lib/Bytecode/Writer/Writer.cpp	Wed Oct 13 20:57:28 2004
@@ -593,7 +593,7 @@
   // 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 @@
 
     // 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 );
 






More information about the llvm-commits mailing list