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 --- include/llvm/InstrTypes.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'include/llvm/InstrTypes.h') diff --git a/include/llvm/InstrTypes.h b/include/llvm/InstrTypes.h index 8bfaca4..fa0ce87 100644 --- a/include/llvm/InstrTypes.h +++ b/include/llvm/InstrTypes.h @@ -55,12 +55,10 @@ public: // create() - Construct a unary instruction, given the opcode // and its operand. // - static UnaryOperator *create(UnaryOps Op, Value *Source, - const Type *DestTy = 0); + static UnaryOperator *create(UnaryOps Op, Value *Source); - UnaryOperator(Value *S, UnaryOps iType, const Type *ResultType, - const string &Name = "") - : Instruction(ResultType, iType, Name) { + UnaryOperator(Value *S, UnaryOps iType, const string &Name = "") + : Instruction(S->getType(), iType, Name) { Operands.reserve(1); Operands.push_back(Use(S, this)); } -- cgit v1.1