[llvm] r203679 - unittests: Fix -Werror build
Justin Bogner
mail at justinbogner.com
Wed Mar 12 10:00:52 PDT 2014
Author: bogner
Date: Wed Mar 12 12:00:52 2014
New Revision: 203679
URL: http://llvm.org/viewvc/llvm-project?rev=203679&view=rev
Log:
unittests: Fix -Werror build
Modified:
llvm/trunk/unittests/Transforms/Utils/Cloning.cpp
Modified: llvm/trunk/unittests/Transforms/Utils/Cloning.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Transforms/Utils/Cloning.cpp?rev=203679&r1=203678&r2=203679&view=diff
==============================================================================
--- llvm/trunk/unittests/Transforms/Utils/Cloning.cpp (original)
+++ llvm/trunk/unittests/Transforms/Utils/Cloning.cpp Wed Mar 12 12:00:52 2014
@@ -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);
More information about the llvm-commits
mailing list