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

David Greene greened at obbligato.org
Tue Oct 28 17:30:54 PDT 2008


Author: greened
Date: Tue Oct 28 19:30:54 2008
New Revision: 58354

URL: http://llvm.org/viewvc/llvm-project?rev=58354&view=rev
Log:

Don't force things to be Value * when they're not.

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=58354&r1=58353&r2=58354&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Tue Oct 28 19:30:54 2008
@@ -420,7 +420,7 @@
 
     if (NumIdx > 0)
       // This requires that the iterator points to contiguous memory.
-      return getIndexedType(Ptr, (Value *const *)&*IdxBegin, NumIdx);
+      return getIndexedType(Ptr, &*IdxBegin, NumIdx);
     else
       return getIndexedType(Ptr, (Value *const*)0, NumIdx);
   }





More information about the llvm-commits mailing list