From 71496b3b50cfcba84eb4acd988ce88a4463e4515 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/InstructionReader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/Bytecode/Reader') diff --git a/lib/Bytecode/Reader/InstructionReader.cpp b/lib/Bytecode/Reader/InstructionReader.cpp index 80127cef8c..d08d19b6bd 100644 --- a/lib/Bytecode/Reader/InstructionReader.cpp +++ b/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-70-g09d2