diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-12 05:52:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-12 05:52:01 +0000 |
commit | 46b787e986ff48a5c59d8a37610945a15ae04d9f (patch) | |
tree | 0edc5fe929b997823a12de08e16f0bef02e78f4d /lib/Bytecode/Writer/InstructionWriter.cpp | |
parent | e3ac22a20493981070075930460e1befa08ddf72 (diff) |
Write select instructions to bytecode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/InstructionWriter.cpp')
-rw-r--r-- | lib/Bytecode/Writer/InstructionWriter.cpp | 3 |
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... |