aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader/InstructionReader.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-08 04:57:15 +0000
committerChris Lattner <sabre@nondot.org>2001-07-08 04:57:15 +0000
commit0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9 (patch)
treedcdecdda0cd3e1168527d832f3824e0c94b3ef60 /lib/Bytecode/Reader/InstructionReader.cpp
parentf22696f209701bff12edbe41c646d1ef179c685d (diff)
Neg instruction removed. Cast instruction implemented.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/InstructionReader.cpp')
-rw-r--r--lib/Bytecode/Reader/InstructionReader.cpp4
1 files changed, 4 insertions, 0 deletions
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) {