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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58354 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Greene 2008-10-29 00:30:54 +00:00
parent f184c66e71
commit 2d5a0b9e54

View File

@ -420,7 +420,7 @@ class GetElementPtrInst : public Instruction {
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);
}