forked from OSchip/llvm-project
Fix this code for hosts where std::vector doesn't have .data().
Use &Ops[0] instead, which is safe since Ops will never be empty here. llvm-svn: 72368
This commit is contained in:
parent
fb56cf1b1d
commit
3cdfe749e0
|
@ -351,7 +351,7 @@ Value *SCEVExpander::visitAddExpr(const SCEVAddExpr *S) {
|
|||
if (SE.TD)
|
||||
if (const PointerType *PTy = dyn_cast<PointerType>(V->getType())) {
|
||||
const std::vector<SCEVHandle> &Ops = S->getOperands();
|
||||
return expandAddToGEP(Ops.data(), Ops.data() + Ops.size() - 1,
|
||||
return expandAddToGEP(&Ops[0], &Ops[Ops.size() - 1],
|
||||
PTy, Ty, V);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue