aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader/InstructionReader.cpp
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
commit71496b3b50cfcba84eb4acd988ce88a4463e4515 (patch)
treebc0590b1a998d42ac95c3671c79d993030e193e1 /lib/Bytecode/Reader/InstructionReader.cpp
parent72f1e9929a086346d4f8a8105f30ff1ac78f691b (diff)
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
Diffstat (limited to 'lib/Bytecode/Reader/InstructionReader.cpp')
-rw-r--r--lib/Bytecode/Reader/InstructionReader.cpp3
1 files changed, 1 insertions, 2 deletions
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);