[llvm-commits] [llvm] r52626 - /llvm/trunk/include/llvm/Instructions.h

Dan Gohman gohman at apple.com
Mon Jun 23 09:38:10 PDT 2008


Author: djg
Date: Mon Jun 23 11:38:10 2008
New Revision: 52626

URL: http://llvm.org/viewvc/llvm-project?rev=52626&view=rev
Log:
Remove an unnecessary cast.

Modified:
    llvm/trunk/include/llvm/Instructions.h

Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=52626&r1=52625&r2=52626&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Mon Jun 23 11:38:10 2008
@@ -1501,7 +1501,7 @@
 
     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);
   }





More information about the llvm-commits mailing list