Compiler warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135426 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Trick 2011-07-18 21:15:03 +00:00
parent 0e6a052331
commit 41e0d4e788

View File

@ -1832,9 +1832,9 @@ LinearFunctionTestReplace(Loop *L,
if (isPtrIV) {
Value *IVStart = IndVar->getIncomingValueForBlock(L->getLoopPreheader());
assert(AR->getStart() == SE->getSCEV(IVStart) && "bad loop counter");
const PointerType *PointerTy = cast<PointerType>(IVStart->getType());
assert(SE->getSizeOfExpr(PointerTy->getElementType())->isOne() &&
"unit stride pointer IV must be i8*");
assert(SE->getSizeOfExpr(
cast<PointerType>(IVStart->getType())->getElementType())->isOne()
&& "unit stride pointer IV must be i8*");
Builder.SetInsertPoint(L->getLoopPreheader()->getTerminator());
ExitCnt = Builder.CreateGEP(IVStart, ExitCnt, "lftr.limit");