diff options
author | Chris Lattner <sabre@nondot.org> | 2001-07-08 19:03:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-07-08 19:03:27 +0000 |
commit | 71496b3b50cfcba84eb4acd988ce88a4463e4515 (patch) | |
tree | bc0590b1a998d42ac95c3671c79d993030e193e1 /include/llvm/InstrTypes.h | |
parent | 72f1e9929a086346d4f8a8105f30ff1ac78f691b (diff) | |
download | external_llvm-71496b3b50cfcba84eb4acd988ce88a4463e4515.zip external_llvm-71496b3b50cfcba84eb4acd988ce88a4463e4515.tar.gz external_llvm-71496b3b50cfcba84eb4acd988ce88a4463e4515.tar.bz2 |
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 'include/llvm/InstrTypes.h')
-rw-r--r-- | include/llvm/InstrTypes.h | 8 |
1 files changed, 3 insertions, 5 deletions
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)); } |