From: David Greene Date: Wed, 29 Oct 2008 00:30:54 +0000 (+0000) Subject: Don't force things to be Value * when they're not. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2d5a0b9e5473618c53cca6cec1b99d18b4c9f76b;p=oota-llvm.git 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 --- 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); }