diff options
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r-- | llvm/unittests/Support/Path.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index 187f47d..5e0092d 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/unittests/Support/Path.cpp @@ -1055,9 +1055,7 @@ TEST_F(FileSystemTest, CreateDir) { do { LongPathWithUnixSeparators.append("/DirNameWith19Charss"); } while (LongPathWithUnixSeparators.size() < 260); - std::replace(LongPathWithUnixSeparators.begin(), - LongPathWithUnixSeparators.end(), - '\\', '/'); + llvm::replace(LongPathWithUnixSeparators, '\\', '/'); ASSERT_NO_ERROR(fs::create_directories(Twine(LongPathWithUnixSeparators))); // cleanup ASSERT_NO_ERROR(fs::remove_directories(Twine(TestDirectory) + @@ -2442,7 +2440,7 @@ TEST_F(FileSystemTest, widenPath) { EXPECT_EQ(Result, Expected); // Check that Unix separators are handled correctly. - std::replace(Input.begin(), Input.end(), '\\', '/'); + llvm::replace(Input, '\\', '/'); ASSERT_NO_ERROR(windows::widenPath(Input, Result)); EXPECT_EQ(Result, Expected); |