From 0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 8 Jul 2001 04:57:15 +0000 Subject: Neg instruction removed. Cast instruction implemented. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/InstructionReader.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Bytecode/Reader/InstructionReader.cpp') diff --git a/lib/Bytecode/Reader/InstructionReader.cpp b/lib/Bytecode/Reader/InstructionReader.cpp index ab70e24f51..80127cef8c 100644 --- a/lib/Bytecode/Reader/InstructionReader.cpp +++ b/lib/Bytecode/Reader/InstructionReader.cpp @@ -105,6 +105,10 @@ bool BytecodeParser::ParseInstruction(const uchar *&Buf, const uchar *EndBuf, getValue(Raw.Ty, Raw.Arg1), 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)); + return false; } else if (Raw.Opcode == Instruction::PHINode) { PHINode *PN = new PHINode(Raw.Ty); switch (Raw.NumOperands) { -- cgit v1.2.3