From d62691f4e840ac0d56ad607a643126a9d28ccf14 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 8 Jan 2011 17:49:51 +0000 Subject: [PATCH] use the LI ivar. llvm-svn: 123068 --- llvm/lib/Transforms/Scalar/LoopRotation.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/Scalar/LoopRotation.cpp b/llvm/lib/Transforms/Scalar/LoopRotation.cpp index b0ba2581a7e7..f38944178267 100644 --- a/llvm/lib/Transforms/Scalar/LoopRotation.cpp +++ b/llvm/lib/Transforms/Scalar/LoopRotation.cpp @@ -328,9 +328,8 @@ void LoopRotate::preserveCanonicalLoopForm(Loop *L, BasicBlock *OrigHeader, BasicBlock *NewPreHeader = BasicBlock::Create(OrigHeader->getContext(), "bb.nph", OrigHeader->getParent(), NewHeader); - LoopInfo &LI = getAnalysis(); - if (Loop *PL = LI.getLoopFor(OrigPreHeader)) - PL->addBasicBlockToLoop(NewPreHeader, LI.getBase()); + if (Loop *PL = LI->getLoopFor(OrigPreHeader)) + PL->addBasicBlockToLoop(NewPreHeader, LI->getBase()); BranchInst::Create(NewHeader, NewPreHeader); BranchInst *OrigPH_BI = cast(OrigPreHeader->getTerminator());