diff options
author | Kazu Hirata <kazu@google.com> | 2022-12-18 00:28:54 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-12-18 00:28:54 -0800 |
commit | 541ef3d61e9341cd38420c0dbca9250c4d0ea04c (patch) | |
tree | 733935732f2a92b056d04f622b6e9acf48f120ba /llvm/lib/Support/Threading.cpp | |
parent | 9c1b82599dac63816cbed80270aaec85a6fa153b (diff) | |
download | llvm-541ef3d61e9341cd38420c0dbca9250c4d0ea04c.zip llvm-541ef3d61e9341cd38420c0dbca9250c4d0ea04c.tar.gz llvm-541ef3d61e9341cd38420c0dbca9250c4d0ea04c.tar.bz2 |
Include <optional> instead of "llvm/ADT/Optional.h"
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
-rw-r--r-- | llvm/lib/Support/Threading.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Threading.cpp b/llvm/lib/Support/Threading.cpp index f4e3331..923935b 100644 --- a/llvm/lib/Support/Threading.cpp +++ b/llvm/lib/Support/Threading.cpp @@ -12,12 +12,12 @@ //===----------------------------------------------------------------------===// #include "llvm/Support/Threading.h" -#include "llvm/ADT/Optional.h" #include "llvm/Config/config.h" #include "llvm/Config/llvm-config.h" #include <cassert> #include <errno.h> +#include <optional> #include <stdlib.h> #include <string.h> |