From 49c643262e94bd720c5ded918f9a0487976340df Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 8 Jul 2001 19:03:27 +0000 Subject: Moved Cast from being a Unary instruction to being an "Other" instruction llvm-svn: 160 --- llvm/lib/Bytecode/Reader/InstructionReader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Bytecode/Reader') diff --git a/llvm/lib/Bytecode/Reader/InstructionReader.cpp b/llvm/lib/Bytecode/Reader/InstructionReader.cpp index 80127cef8cc..d08d19b6bd3 100644 --- a/llvm/lib/Bytecode/Reader/InstructionReader.cpp +++ b/llvm/lib/Bytecode/Reader/InstructionReader.cpp @@ -106,8 +106,7 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf, getValue(Raw.Ty, Raw.Arg2)); return false; } else if (Raw.Opcode == Instruction::Cast) { - Res = UnaryOperator::create(Instruction::Cast, getValue(Raw.Ty, Raw.Arg1), - getType(Raw.Arg2)); + Res = new CastInst(getValue(Raw.Ty, Raw.Arg1), getType(Raw.Arg2)); return false; } else if (Raw.Opcode == Instruction::PHINode) { PHINode *PN = new PHINode(Raw.Ty); -- cgit v1.2.3