From 2d5a0b9e5473618c53cca6cec1b99d18b4c9f76b Mon Sep 17 00:00:00 2001 From: David Greene Date: Wed, 29 Oct 2008 00:30:54 +0000 Subject: [PATCH] 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 --- include/llvm/Instructions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 22787570112..6ee18313a22 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); }