[compiler-rt] ac5ce40 - [ORC-RT] Fix signedness warning in unit test.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 19 02:57:56 PDT 2021
Author: Lang Hames
Date: 2021-07-19T19:44:42+10:00
New Revision: ac5ce40fa80d1ca0c25db23375b60cfbc39f5c7f
URL: https://github.com/llvm/llvm-project/commit/ac5ce40fa80d1ca0c25db23375b60cfbc39f5c7f
DIFF: https://github.com/llvm/llvm-project/commit/ac5ce40fa80d1ca0c25db23375b60cfbc39f5c7f.diff
LOG: [ORC-RT] Fix signedness warning in unit test.
Added:
Modified:
compiler-rt/lib/orc/unittests/adt_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/orc/unittests/adt_test.cpp b/compiler-rt/lib/orc/unittests/adt_test.cpp
index 3c34b87f68615..dec636e837ddd 100644
--- a/compiler-rt/lib/orc/unittests/adt_test.cpp
+++ b/compiler-rt/lib/orc/unittests/adt_test.cpp
@@ -72,7 +72,7 @@ TEST(ADTTest, StringViewConstructFromCharPtr) {
EXPECT_FALSE(S.empty()) << "Span should be non-empty";
EXPECT_EQ(S.size(), StrLen) << "Span has unexpected size";
- EXPECT_EQ(std::distance(S.begin(), S.end()), StrLen)
+ EXPECT_EQ(static_cast<size_t>(std::distance(S.begin(), S.end())), StrLen)
<< "Unexpected iterator range size";
EXPECT_EQ(S.data(), &Str[0]) << "Span data has unexpected value";
for (unsigned I = 0; I != S.size(); ++I)
More information about the llvm-commits
mailing list