[llvm] r307511 - CGSCCPassManagerTest.cpp: Fix warnings. [-Wunused-variable]
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 11:45:36 PDT 2017
Probably tidy to avoid the '&' in the void cast expressions, just have:
(void)NewC;
Should be adequate.
On Sun, Jul 9, 2017 at 4:06 PM NAKAMURA Takumi via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> 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;
> }));
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170710/71d9490d/attachment.html>
More information about the llvm-commits
mailing list