summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-08 19:03:27 +0000
committerChris Lattner <sabre@nondot.org>2001-07-08 19:03:27 +0000
commit49c643262e94bd720c5ded918f9a0487976340df (patch)
tree78008724769f6507a34f8b3424d143a7f173443e /llvm/lib/Bytecode/Reader
parentfb8ed0cf3aac280673d7e4d01d0d193f1b9134aa (diff)
downloadbcm5719-llvm-49c643262e94bd720c5ded918f9a0487976340df.tar.gz
bcm5719-llvm-49c643262e94bd720c5ded918f9a0487976340df.zip
Moved Cast from being a Unary instruction to being an "Other" instruction
llvm-svn: 160
Diffstat (limited to 'llvm/lib/Bytecode/Reader')
-rw-r--r--llvm/lib/Bytecode/Reader/InstructionReader.cpp3
1 files changed, 1 insertions, 2 deletions
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);
OpenPOWER on IntegriCloud