summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-05-14 12:00:35 +0000
committerClement Courbet <courbet@google.com>2018-05-14 12:00:35 +0000
commit4c0fb1dc68d8e71989135caafabf65e1b60283a0 (patch)
treeaa0c9be29c1fb8ca022d640572bc2a12f03823bb
parent93380371bbcfbd6a3a4c3bf0e081a110a52df4cf (diff)
downloadbcm5719-llvm-4c0fb1dc68d8e71989135caafabf65e1b60283a0.tar.gz
bcm5719-llvm-4c0fb1dc68d8e71989135caafabf65e1b60283a0.zip
Re-land r332230 "[llvm-exegesis]Fix a warning in r332221"
comparison of integers of different signs: 'const unsigned long' and 'const int' [-Werror,-Wsign-compare] unittests/tools/llvm-exegesis/BenchmarkResultTest.cpp:60:5: note: in instantiation of function template specialization 'testing::internal::EqHelper<false>::Compare<unsigned long, int>' requested here ASSERT_EQ(FromDiskVector.size(), 1); llvm-svn: 332235
-rw-r--r--llvm/unittests/tools/llvm-exegesis/BenchmarkResultTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/tools/llvm-exegesis/BenchmarkResultTest.cpp b/llvm/unittests/tools/llvm-exegesis/BenchmarkResultTest.cpp
index 82c9481a238..52bc0e94357 100644
--- a/llvm/unittests/tools/llvm-exegesis/BenchmarkResultTest.cpp
+++ b/llvm/unittests/tools/llvm-exegesis/BenchmarkResultTest.cpp
@@ -57,7 +57,7 @@ TEST(BenchmarkResultTest, WriteToAndReadFromDisk) {
{
// Vector version.
const auto FromDiskVector = InstructionBenchmark::readYamlsOrDie(Filename);
- ASSERT_EQ(FromDiskVector.size(), 1);
+ ASSERT_EQ(FromDiskVector.size(), size_t{1});
const auto FromDisk = FromDiskVector[0];
EXPECT_EQ(FromDisk.AsmTmpl.Name, ToDisk.AsmTmpl.Name);
EXPECT_EQ(FromDisk.CpuName, ToDisk.CpuName);
OpenPOWER on IntegriCloud