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

Chris Lattner lattner at cs.uiuc.edu
Thu Mar 11 23:53:24 PST 2004


Changes in directory llvm/lib/Bytecode/Writer:

InstructionWriter.cpp updated: 1.39 -> 1.40

---
Log message:

Write select instructions to bytecode


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

Index: llvm/lib/Bytecode/Writer/InstructionWriter.cpp
diff -u llvm/lib/Bytecode/Writer/InstructionWriter.cpp:1.39 llvm/lib/Bytecode/Writer/InstructionWriter.cpp:1.40
--- llvm/lib/Bytecode/Writer/InstructionWriter.cpp:1.39	Sat Jan 31 19:50:31 2004
+++ llvm/lib/Bytecode/Writer/InstructionWriter.cpp	Thu Mar 11 23:52:01 2004
@@ -207,9 +207,10 @@
   //
   const Type *Ty;
   switch (I.getOpcode()) {
+  case Instruction::Select:
   case Instruction::Malloc:
   case Instruction::Alloca:
-    Ty = I.getType();  // Malloc & Alloca ALWAYS want to encode the return type
+    Ty = I.getType();  // These ALWAYS want to encode the return type
     break;
   case Instruction::Store:
     Ty = I.getOperand(1)->getType();  // Encode the pointer type...





More information about the llvm-commits mailing list