[LFTR] Minor style cleanup [nfc]

This commit is contained in:
Philip Reames 2023-03-21 19:12:35 -07:00 committed by Philip Reames
parent 206dc54534
commit 06006f438e

View File

@ -961,9 +961,8 @@ static Value *genLoopLimit(PHINode *IndVar, BasicBlock *ExitingBB,
// Ensure that we generate the same type as IndVar, or a smaller integer
// type. In the presence of null pointer values, we have an integer type
// SCEV expression (IVInit) for a pointer type IV value (IndVar).
Type *LimitTy = ExitCount->getType();
BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator());
return Rewriter.expandCodeFor(IVLimit, LimitTy, BI);
return Rewriter.expandCodeFor(IVLimit, ExitCount->getType(),
ExitingBB->getTerminator());
}
}