diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-05-27 11:03:29 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-05-27 11:03:29 +0000 |
commit | b9d9eba9163ab6b2afe2d178b2377dc2a4f949c7 (patch) | |
tree | e1bc7d69b187bfab4fd3c780e7f5c356176015d7 | |
parent | 9a6246c7349e4f09af794d889d23fd3de9a9aac4 (diff) | |
download | external_llvm-b9d9eba9163ab6b2afe2d178b2377dc2a4f949c7.zip external_llvm-b9d9eba9163ab6b2afe2d178b2377dc2a4f949c7.tar.gz external_llvm-b9d9eba9163ab6b2afe2d178b2377dc2a4f949c7.tar.bz2 |
remove unneeded reinterpret_casts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51589 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Instructions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index f33e2dd..cf79b6f 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -1010,7 +1010,7 @@ void GetElementPtrInst::init(Value *Ptr, Value *Idx) { } GetElementPtrInst::GetElementPtrInst(const GetElementPtrInst &GEPI) - : Instruction(reinterpret_cast<const Type*>(GEPI.getType()), GetElementPtr, + : Instruction(GEPI.getType(), GetElementPtr, OperandTraits<GetElementPtrInst>::op_end(this) - GEPI.getNumOperands(), GEPI.getNumOperands()) { @@ -1355,7 +1355,7 @@ void InsertValueInst::init(Value *Agg, Value *Val, Value *Idx) { } InsertValueInst::InsertValueInst(const InsertValueInst &IVI) - : Instruction(reinterpret_cast<const Type*>(IVI.getType()), InsertValue, + : Instruction(IVI.getType(), InsertValue, OperandTraits<InsertValueInst>::op_end(this) - IVI.getNumOperands(), IVI.getNumOperands()) { |