diff --git a/llvm/lib/WindowsDriver/MSVCPaths.cpp b/llvm/lib/WindowsDriver/MSVCPaths.cpp index 0afc9dbdf81031..fb8991985a9df5 100644 --- a/llvm/lib/WindowsDriver/MSVCPaths.cpp +++ b/llvm/lib/WindowsDriver/MSVCPaths.cpp @@ -7,7 +7,6 @@ //===----------------------------------------------------------------------===// #include "llvm/WindowsDriver/MSVCPaths.h" -#include "llvm/ADT/Optional.h" #include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" @@ -651,7 +650,7 @@ bool findVCToolChainViaSetupConfig(vfs::FileSystem &VFS, std::string &Path, return false; ISetupInstancePtr NewestInstance; - Optional NewestVersionNum; + std::optional NewestVersionNum; do { bstr_t VersionString; uint64_t VersionNum;