[llvm] 47a686d - [unittest] Fix Frontend/OpenMPIRBuilderTest.cpp -Wsign-compare after D89671
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 29 09:38:04 PDT 2021
Author: Fangrui Song
Date: 2021-04-29T09:37:58-07:00
New Revision: 47a686d5cbcaed72fde0a859bfbc41c3c16ada27
URL: https://github.com/llvm/llvm-project/commit/47a686d5cbcaed72fde0a859bfbc41c3c16ada27
DIFF: https://github.com/llvm/llvm-project/commit/47a686d5cbcaed72fde0a859bfbc41c3c16ada27.diff
LOG: [unittest] Fix Frontend/OpenMPIRBuilderTest.cpp -Wsign-compare after D89671
Added:
Modified:
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
index e00a1c05956f..8da58d57a973 100644
--- a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+++ b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
@@ -2233,7 +2233,7 @@ TEST_F(OpenMPIRBuilderTest, CreateSections) {
EXPECT_EQ(F, OutlinedFn);
EXPECT_FALSE(verifyModule(*M, &errs()));
EXPECT_EQ(OutlinedFn->arg_size(), 1U);
- EXPECT_EQ(OutlinedFn->getBasicBlockList().size(), 11);
+ EXPECT_EQ(OutlinedFn->getBasicBlockList().size(), size_t(11));
BasicBlock *LoopPreheaderBB =
OutlinedFn->getEntryBlock().getSingleSuccessor();
More information about the llvm-commits
mailing list