[llvm] r291666 - Fix unused variable warning
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 11 02:40:34 PST 2017
Author: rksimon
Date: Wed Jan 11 04:40:33 2017
New Revision: 291666
URL: http://llvm.org/viewvc/llvm-project?rev=291666&view=rev
Log:
Fix unused variable warning
Modified:
llvm/trunk/unittests/Transforms/Scalar/LoopPassManagerTest.cpp
Modified: llvm/trunk/unittests/Transforms/Scalar/LoopPassManagerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Transforms/Scalar/LoopPassManagerTest.cpp?rev=291666&r1=291665&r2=291666&view=diff
==============================================================================
--- llvm/trunk/unittests/Transforms/Scalar/LoopPassManagerTest.cpp (original)
+++ llvm/trunk/unittests/Transforms/Scalar/LoopPassManagerTest.cpp Wed Jan 11 04:40:33 2017
@@ -777,7 +777,7 @@ TEST_F(LoopPassManagerTest, IndirectOute
auto &FAMP = AM.getResult<FunctionAnalysisManagerLoopProxy>(L, AR);
auto &FAM = FAMP.getManager();
Function &F = *L.getHeader()->getParent();
- if (auto *FA = FAM.getCachedResult<FunctionAnalysis>(F))
+ if (FAM.getCachedResult<FunctionAnalysis>(F))
FAMP.registerOuterAnalysisInvalidation<FunctionAnalysis,
LoopAnalysis>();
return MLAHandle.getResult();
More information about the llvm-commits
mailing list