From: Dan Gohman Date: Mon, 23 Jun 2008 16:38:10 +0000 (+0000) Subject: Remove an unnecessary cast. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=19a81633b01b4b30b356ba6d7aed6bc451470654;p=oota-llvm.git Remove an unnecessary cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52626 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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); }