[llvm] 671a79c - [WindowsDriver] llvm::Optional => std::optional

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 13 02:07:03 PST 2022


Author: Fangrui Song
Date: 2022-12-13T10:06:57Z
New Revision: 671a79cacf637492dc5a8a6d4f2ae249f3b3d979

URL: https://github.com/llvm/llvm-project/commit/671a79cacf637492dc5a8a6d4f2ae249f3b3d979
DIFF: https://github.com/llvm/llvm-project/commit/671a79cacf637492dc5a8a6d4f2ae249f3b3d979.diff

LOG: [WindowsDriver] llvm::Optional => std::optional

Added: 
    

Modified: 
    llvm/lib/WindowsDriver/MSVCPaths.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/WindowsDriver/MSVCPaths.cpp b/llvm/lib/WindowsDriver/MSVCPaths.cpp
index 0afc9dbdf8103..fb8991985a9df 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<uint64_t> NewestVersionNum;
+  std::optional<uint64_t> NewestVersionNum;
   do {
     bstr_t VersionString;
     uint64_t VersionNum;


        


More information about the llvm-commits mailing list