unittests: Fix -Werror build
authorJustin Bogner <mail@justinbogner.com>
Wed, 12 Mar 2014 17:00:52 +0000 (17:00 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 12 Mar 2014 17:00:52 +0000 (17:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203679 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Transforms/Utils/Cloning.cpp

index db1edd9c6d4767841740361945be7a98c21565c7..63585b82ae730b481e959efe0a920dc7055fffe5 100644 (file)
@@ -274,7 +274,7 @@ TEST_F(CloneFunc, NewFunctionCreated) {
 // function, while the original subprogram still points to the old one.
 TEST_F(CloneFunc, Subprogram) {
   unsigned SubprogramCount = Finder->subprogram_count();
-  EXPECT_EQ(2, SubprogramCount);
+  EXPECT_EQ(2U, SubprogramCount);
 
   DebugInfoFinder::iterator Iter = Finder->subprogram_begin();
   DISubprogram Sub1(*Iter);
@@ -290,7 +290,7 @@ TEST_F(CloneFunc, Subprogram) {
 // Test that the new subprogram entry was not added to the CU which doesn't
 // contain the old subprogram entry.
 TEST_F(CloneFunc, SubprogramInRightCU) {
-  EXPECT_EQ(2, Finder->compile_unit_count());
+  EXPECT_EQ(2U, Finder->compile_unit_count());
 
   DebugInfoFinder::iterator Iter = Finder->compile_unit_begin();
   DICompileUnit CU1(*Iter);