From 8a48aae3603f78bda657fd3f0292633fc813e868 Mon Sep 17 00:00:00 2001 From: Max Kazantsev Date: Mon, 21 Jan 2019 07:27:47 +0000 Subject: [PATCH] [NFC] Fix warnings in unit test of r351725 llvm-svn: 351726 --- unittests/Analysis/ScalarEvolutionTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/unittests/Analysis/ScalarEvolutionTest.cpp b/unittests/Analysis/ScalarEvolutionTest.cpp index c4a2113d43b..9d293e0b2a2 100644 --- a/unittests/Analysis/ScalarEvolutionTest.cpp +++ b/unittests/Analysis/ScalarEvolutionTest.cpp @@ -1423,7 +1423,7 @@ TEST_F(ScalarEvolutionsTest, SCEVComputeExpressionSize) { Builder.CreateBr(Exit); Builder.SetInsertPoint(Exit); - auto *R = cast(Builder.CreateRetVoid()); + Builder.CreateRetVoid(); ScalarEvolution SE = buildSE(*F); // Get S2 first to move it to cache. @@ -1432,11 +1432,11 @@ TEST_F(ScalarEvolutionsTest, SCEVComputeExpressionSize) { const SCEV *CS = SE.getSCEV(C); const SCEV *S1S = SE.getSCEV(S1); const SCEV *S2S = SE.getSCEV(S2); - EXPECT_EQ(AS->getExpressionSize(), 1); - EXPECT_EQ(BS->getExpressionSize(), 1); - EXPECT_EQ(CS->getExpressionSize(), 1); - EXPECT_EQ(S1S->getExpressionSize(), 3); - EXPECT_EQ(S2S->getExpressionSize(), 5); + EXPECT_EQ(AS->getExpressionSize(), 1u); + EXPECT_EQ(BS->getExpressionSize(), 1u); + EXPECT_EQ(CS->getExpressionSize(), 1u); + EXPECT_EQ(S1S->getExpressionSize(), 3u); + EXPECT_EQ(S2S->getExpressionSize(), 5u); } } // end anonymous namespace