diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index 36c0a592812557efc377f327387478e50883aef7..403e82aea1ff17f1fbae6c297925a42c051afd85 100644 --- a/llvm/include/llvm/Instructions.h +++ b/llvm/include/llvm/Instructions.h @@ -1501,7 +1501,7 @@ class ExtractValueInst : public UnaryInstruction { if (NumIdx > 0) // This requires that the iterator points to contiguous memory. - return getIndexedType(Ptr, (const unsigned *)&*IdxBegin, NumIdx); + return getIndexedType(Ptr, &*IdxBegin, NumIdx); else return getIndexedType(Ptr, (const unsigned *)0, NumIdx); }