From: Anna Thomas Date: Thu, 30 Sep 2021 14:37:18 +0000 (-0400) Subject: [LoopPredication] Remove unused variable X-Git-Tag: upstream/15.0.7~30038 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f2d01376d2da4e73e0dc5d339f6e5b1646a9c25;p=platform%2Fupstream%2Fllvm.git [LoopPredication] Remove unused variable After rG452714f8f8037ff37f9358317651d1652e231db2, the Function `F` retrieved in LoopPredication is not used. Remove this unused variable to stop some buildbots (ASAN, clang-ppc) from failing. --- diff --git a/llvm/lib/Transforms/Scalar/LoopPredication.cpp b/llvm/lib/Transforms/Scalar/LoopPredication.cpp index 4eeb295..d8ddcd6 100644 --- a/llvm/lib/Transforms/Scalar/LoopPredication.cpp +++ b/llvm/lib/Transforms/Scalar/LoopPredication.cpp @@ -366,7 +366,6 @@ Pass *llvm::createLoopPredicationPass() { PreservedAnalyses LoopPredicationPass::run(Loop &L, LoopAnalysisManager &AM, LoopStandardAnalysisResults &AR, LPMUpdater &U) { - Function *F = L.getHeader()->getParent(); std::unique_ptr MSSAU; if (AR.MSSA) MSSAU = std::make_unique(AR.MSSA);