summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Transforms/Utils
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-03-12 17:00:52 +0000
committerJustin Bogner <mail@justinbogner.com>2014-03-12 17:00:52 +0000
commitf404b93576154f13567ddfa50beb2420f82b6dcf (patch)
tree7372e55d0e02c4549f16c12d2a82b5059aa2155d /llvm/unittests/Transforms/Utils
parentc47d084650c6d1333509cf82b08307ea0237a872 (diff)
downloadbcm5719-llvm-f404b93576154f13567ddfa50beb2420f82b6dcf.tar.gz
bcm5719-llvm-f404b93576154f13567ddfa50beb2420f82b6dcf.zip
unittests: Fix -Werror build
llvm-svn: 203679
Diffstat (limited to 'llvm/unittests/Transforms/Utils')
-rw-r--r--llvm/unittests/Transforms/Utils/Cloning.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Transforms/Utils/Cloning.cpp b/llvm/unittests/Transforms/Utils/Cloning.cpp
index db1edd9c6d4..63585b82ae7 100644
--- a/llvm/unittests/Transforms/Utils/Cloning.cpp
+++ b/llvm/unittests/Transforms/Utils/Cloning.cpp
@@ -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);
OpenPOWER on IntegriCloud