From 41e0d4e788eb473ea2ac9f086f51fd7e11882430 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Mon, 18 Jul 2011 21:15:03 +0000 Subject: [PATCH] Compiler warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135426 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/IndVarSimplify.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index d7b11b85460..b75db7d2bab 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -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(IVStart->getType()); - assert(SE->getSizeOfExpr(PointerTy->getElementType())->isOne() && - "unit stride pointer IV must be i8*"); + assert(SE->getSizeOfExpr( + cast(IVStart->getType())->getElementType())->isOne() + && "unit stride pointer IV must be i8*"); Builder.SetInsertPoint(L->getLoopPreheader()->getTerminator()); ExitCnt = Builder.CreateGEP(IVStart, ExitCnt, "lftr.limit"); -- 2.34.1