From b9d9eba9163ab6b2afe2d178b2377dc2a4f949c7 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Tue, 27 May 2008 11:03:29 +0000 Subject: [PATCH] remove unneeded reinterpret_casts git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51589 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Instructions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index f33e2dd449a..cf79b6fe60d 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(GEPI.getType()), GetElementPtr, + : Instruction(GEPI.getType(), GetElementPtr, OperandTraits::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(IVI.getType()), InsertValue, + : Instruction(IVI.getType(), InsertValue, OperandTraits::op_end(this) - IVI.getNumOperands(), IVI.getNumOperands()) {