[llvm-commits] [llvm] r135426 - /llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
Andrew Trick
atrick at apple.com
Mon Jul 18 14:15:03 PDT 2011
Author: atrick
Date: Mon Jul 18 16:15:03 2011
New Revision: 135426
URL: http://llvm.org/viewvc/llvm-project?rev=135426&view=rev
Log:
Compiler warning.
Modified:
llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=135426&r1=135425&r2=135426&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Mon Jul 18 16:15:03 2011
@@ -1832,9 +1832,9 @@
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");
More information about the llvm-commits
mailing list