summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer/InstructionWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-12 05:52:01 +0000
committerChris Lattner <sabre@nondot.org>2004-03-12 05:52:01 +0000
commite7c9f6f7ae565c8094c6927004a5b6cef9513421 (patch)
treed567619819a98f3c214ef1e3786f909e26a49fbd /llvm/lib/Bytecode/Writer/InstructionWriter.cpp
parent92412466b6373e12fc5015c9c03a91b8877004fa (diff)
downloadbcm5719-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.cpp3
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...
OpenPOWER on IntegriCloud