[clang] fix deprecation

This commit is contained in:
Thorsten Schütt 2022-08-09 17:42:31 +02:00
parent ed162d455a
commit e486e48c3d
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ static void eventStreamCallback(ConstFSEventStreamRef Stream,
llvm::sys::path::filename(Path));
continue;
} else if (Flags & ModifyingFileEvents) {
if (!getFileStatus(Path).hasValue()) {
if (!getFileStatus(Path).has_value()) {
Events.emplace_back(DirectoryWatcher::Event::EventKind::Removed,
llvm::sys::path::filename(Path));
} else {