aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2008-10-29 00:30:54 +0000
committerDavid Greene <greened@obbligato.org>2008-10-29 00:30:54 +0000
commit2d5a0b9e5473618c53cca6cec1b99d18b4c9f76b (patch)
treeb2e8e4d13d7c5a89c5b6a605a9684895b53e5787
parentf184c66e71a5cb6dbfb3a9bd68c2c0a7e1a59e0d (diff)
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
-rw-r--r--include/llvm/Instructions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 2278757011..6ee18313a2 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -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);
}