mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
Compiler warning.
llvm-svn: 135426
This commit is contained in:
parent
561d71ce7b
commit
ff306f7c8b
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user