aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/Path.cpp
diff options
context:
space:
mode:
authorAlexandre Ganea <alexandre.ganea@legionlabs.com>2022-04-08 11:07:14 -0400
committerAlexandre Ganea <alexandre.ganea@legionlabs.com>2022-04-08 11:08:21 -0400
commitffaf667a435bf064553f12c04a3a199263e3fdcb (patch)
treec45e969c4f9d4bbc86692241917a835ff8093495 /llvm/unittests/Support/Path.cpp
parent2e0cb61570eceff04a18fbcbeb0014ece2b56438 (diff)
downloadllvm-ffaf667a435bf064553f12c04a3a199263e3fdcb.zip
llvm-ffaf667a435bf064553f12c04a3a199263e3fdcb.tar.gz
llvm-ffaf667a435bf064553f12c04a3a199263e3fdcb.tar.bz2
[Support][unittests] Silence warning when building with Clang 13 on
Windows.
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r--llvm/unittests/Support/Path.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp
index c3ba0b5..00c4104 100644
--- a/llvm/unittests/Support/Path.cpp
+++ b/llvm/unittests/Support/Path.cpp
@@ -2316,7 +2316,7 @@ TEST_F(FileSystemTest, widenPath) {
for (size_t i = 0; i < NumChars; ++i)
Input += Pi;
// Check that UTF-8 length already exceeds MAX_PATH.
- EXPECT_GT(Input.size(), MAX_PATH);
+ EXPECT_GT(Input.size(), (size_t)MAX_PATH);
SmallVector<wchar_t, MAX_PATH + 16> Result;
ASSERT_NO_ERROR(windows::widenPath(Input, Result));
// Result should not start with the long path prefix.