aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer/InstructionWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bytecode/Writer/InstructionWriter.cpp')
-rw-r--r--lib/Bytecode/Writer/InstructionWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Bytecode/Writer/InstructionWriter.cpp b/lib/Bytecode/Writer/InstructionWriter.cpp
index 4b845996bf..e86b027135 100644
--- a/lib/Bytecode/Writer/InstructionWriter.cpp
+++ b/lib/Bytecode/Writer/InstructionWriter.cpp
@@ -207,9 +207,10 @@ void BytecodeWriter::outputInstruction(const Instruction &I) {
//
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...