Remove an unnecessary cast.
authorDan Gohman <gohman@apple.com>
Mon, 23 Jun 2008 16:38:10 +0000 (16:38 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 23 Jun 2008 16:38:10 +0000 (16:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52626 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instructions.h

index 36c0a592812557efc377f327387478e50883aef7..403e82aea1ff17f1fbae6c297925a42c051afd85 100644 (file)
@@ -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);
   }