[llvm-commits] [llvm] r51589 - /llvm/trunk/lib/VMCore/Instructions.cpp

Gabor Greif ggreif at gmail.com
Tue May 27 04:03:38 PDT 2008


Author: ggreif
Date: Tue May 27 06:03:29 2008
New Revision: 51589

URL: http://llvm.org/viewvc/llvm-project?rev=51589&view=rev
Log:
remove unneeded reinterpret_casts

Modified:
    llvm/trunk/lib/VMCore/Instructions.cpp

Modified: llvm/trunk/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instructions.cpp?rev=51589&r1=51588&r2=51589&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/Instructions.cpp (original)
+++ llvm/trunk/lib/VMCore/Instructions.cpp Tue May 27 06:03:29 2008
@@ -1010,7 +1010,7 @@
 }
 
 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 @@
 }
 
 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()) {





More information about the llvm-commits mailing list