From 696e841b14f612969c618d86505109b6dd5e4dca Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 23 Jun 2008 16:38:10 +0000 Subject: [PATCH] Remove an unnecessary cast. llvm-svn: 52626 --- include/llvm/Instructions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 36c0a592812..403e82aea1f 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -1501,7 +1501,7 @@ class ExtractValueInst : public UnaryInstruction { if (NumIdx > 0) // This requires that the iterator points to contiguous memory. - return getIndexedType(Ptr, (const unsigned *)&*IdxBegin, NumIdx); + return getIndexedType(Ptr, &*IdxBegin, NumIdx); else return getIndexedType(Ptr, (const unsigned *)0, NumIdx); }