Read select instrs from bytecode
authorChris Lattner <sabre@nondot.org>
Fri, 12 Mar 2004 05:51:49 +0000 (05:51 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 12 Mar 2004 05:51:49 +0000 (05:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12314 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/InstructionReader.cpp

index 8912704c6f624d59bb4b2b4ff0c88580eefcf085..0ade581c1fda8415fe63af758a348553ab673f50 100644 (file)
@@ -156,6 +156,11 @@ void BytecodeParser::ParseInstruction(const unsigned char *&Buf,
   case Instruction::Cast:
     Result = new CastInst(getValue(RI.Type, Args[0]), getType(Args[1]));
     break;
+  case Instruction::Select:
+    Result = new SelectInst(getValue(Type::BoolTyID, Args[0]),
+                            getValue(RI.Type, Args[1]),
+                            getValue(RI.Type, Args[2]));
+    break;
   case Instruction::PHI: {
     if (Args.size() == 0 || (Args.size() & 1))
       throw std::string("Invalid phi node encountered!\n");