aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/Path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r--llvm/unittests/Support/Path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp
index 3b8ffd8..d649deb 100644
--- a/llvm/unittests/Support/Path.cpp
+++ b/llvm/unittests/Support/Path.cpp
@@ -1994,7 +1994,7 @@ TEST_F(FileSystemTest, readNativeFileToEOF) {
static_cast<SmallVectorImpl<char> *>(&StaysSmall),
};
for (SmallVectorImpl<char> *V : Vectors) {
- ASSERT_THAT_ERROR(Read(*V, None), Succeeded());
+ ASSERT_THAT_ERROR(Read(*V, std::nullopt), Succeeded());
ASSERT_EQ(Content, StringRef(V->begin(), V->size()));
}
ASSERT_EQ(fs::DefaultReadChunkSize + Content.size(), StaysSmall.capacity());
@@ -2004,7 +2004,7 @@ TEST_F(FileSystemTest, readNativeFileToEOF) {
constexpr StringLiteral Prefix = "prefix-";
for (SmallVectorImpl<char> *V : Vectors) {
V->assign(Prefix.begin(), Prefix.end());
- ASSERT_THAT_ERROR(Read(*V, None), Succeeded());
+ ASSERT_THAT_ERROR(Read(*V, std::nullopt), Succeeded());
ASSERT_EQ((Prefix + Content).str(), StringRef(V->begin(), V->size()));
}
}