Fix signed/unsigned comparison warnings
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 11 Mar 2017 13:02:31 +0000 (13:02 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 11 Mar 2017 13:02:31 +0000 (13:02 +0000)
llvm-svn: 297561

llvm/unittests/Analysis/LazyCallGraphTest.cpp

index 4b6d63d..6955beb 100644 (file)
@@ -1941,7 +1941,7 @@ TEST(LazyCallGraphTest, ReplaceNodeFunction) {
   LazyCallGraph::RefSCC &RC2 = *I++;
   EXPECT_EQ(CG.postorder_ref_scc_end(), I);
 
-  ASSERT_EQ(2u, RC1.size());
+  ASSERT_EQ(2, RC1.size());
   LazyCallGraph::SCC &C1 = RC1[0];
   LazyCallGraph::SCC &C2 = RC1[1];
 
@@ -2036,7 +2036,7 @@ TEST(LazyCallGraphTest, RemoveFunctionWithSpurriousRef) {
   LazyCallGraph::RefSCC &RC2 = *I++;
   EXPECT_EQ(CG.postorder_ref_scc_end(), I);
 
-  ASSERT_EQ(2u, RC1.size());
+  ASSERT_EQ(2, RC1.size());
   LazyCallGraph::SCC &C1 = RC1[0];
   LazyCallGraph::SCC &C2 = RC1[1];