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 | e7c9f6f7ae565c8094c6927004a5b6cef9513421 (patch) | |
tree | d567619819a98f3c214ef1e3786f909e26a49fbd /llvm/lib/Bytecode/Writer/InstructionWriter.cpp | |
parent | 92412466b6373e12fc5015c9c03a91b8877004fa (diff) | |
download | bcm5719-llvm-e7c9f6f7ae565c8094c6927004a5b6cef9513421.tar.gz bcm5719-llvm-e7c9f6f7ae565c8094c6927004a5b6cef9513421.zip |
Write select instructions to bytecode
llvm-svn: 12315
Diffstat (limited to 'llvm/lib/Bytecode/Writer/InstructionWriter.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Writer/InstructionWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Writer/InstructionWriter.cpp b/llvm/lib/Bytecode/Writer/InstructionWriter.cpp index 4b845996bfb..e86b027135b 100644 --- a/llvm/lib/Bytecode/Writer/InstructionWriter.cpp +++ b/llvm/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... |