forked from OSchip/llvm-project
[clang] fix deprecation
This commit is contained in:
parent
ed162d455a
commit
e486e48c3d
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue