mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
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:
parent
f184c66e71
commit
2d5a0b9e54
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user