[llvm] r307511 - CGSCCPassManagerTest.cpp: Fix warnings. [-Wunused-variable]
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 9 16:06:06 PDT 2017
Author: chapuni
Date: Sun Jul 9 16:06:05 2017
New Revision: 307511
URL: http://llvm.org/viewvc/llvm-project?rev=307511&view=rev
Log:
CGSCCPassManagerTest.cpp: Fix warnings. [-Wunused-variable]
Modified:
llvm/trunk/unittests/Analysis/CGSCCPassManagerTest.cpp
Modified: llvm/trunk/unittests/Analysis/CGSCCPassManagerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Analysis/CGSCCPassManagerTest.cpp?rev=307511&r1=307510&r2=307511&view=diff
==============================================================================
--- llvm/trunk/unittests/Analysis/CGSCCPassManagerTest.cpp (original)
+++ llvm/trunk/unittests/Analysis/CGSCCPassManagerTest.cpp Sun Jul 9 16:06:05 2017
@@ -1169,6 +1169,7 @@ TEST_F(CGSCCPassManagerTest, TestAnalysi
auto &NewC = updateCGAndAnalysisManagerForFunctionPass(
CG, C, H2N, AM, UR, /*DebugLogging*/ true);
assert(&NewC != &C && "Should get a new SCC due to update!");
+ (void)&NewC;
return PA;
}));
@@ -1214,6 +1215,7 @@ TEST_F(CGSCCPassManagerTest, TestAnalysi
auto &NewC = updateCGAndAnalysisManagerForFunctionPass(
CG, C, H2N, AM, UR, /*DebugLogging*/ true);
assert(&NewC != &C && "Should get a new SCC due to update!");
+ (void)&NewC;
return PA;
}));
More information about the llvm-commits
mailing list