aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Threading.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-12-16 08:49:10 +0000
committerFangrui Song <i@maskray.me>2022-12-16 08:49:10 +0000
commitb1df3a2c0b6a42570042934cb79ca0e4359f863b (patch)
tree2cededee6eea9ccc6a38a25ea468edd352253f43 /llvm/lib/Support/Threading.cpp
parent61a124db5647f83422476797a761d2ec22a2d17f (diff)
downloadllvm-b1df3a2c0b6a42570042934cb79ca0e4359f863b.zip
llvm-b1df3a2c0b6a42570042934cb79ca0e4359f863b.tar.gz
llvm-b1df3a2c0b6a42570042934cb79ca0e4359f863b.tar.bz2
[Support] llvm::Optional => 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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Threading.cpp b/llvm/lib/Support/Threading.cpp
index 24962ae..f4e3331 100644
--- a/llvm/lib/Support/Threading.cpp
+++ b/llvm/lib/Support/Threading.cpp
@@ -82,9 +82,9 @@ unsigned llvm::ThreadPoolStrategy::compute_thread_count() const {
// which is not enough for some/many normal LLVM compilations. This implements
// the same interface as std::thread but requests the same stack size as the
// main thread (8MB) before creation.
-const llvm::Optional<unsigned> llvm::thread::DefaultStackSize = 8 * 1024 * 1024;
+const std::optional<unsigned> llvm::thread::DefaultStackSize = 8 * 1024 * 1024;
#else
-const llvm::Optional<unsigned> llvm::thread::DefaultStackSize;
+const std::optional<unsigned> llvm::thread::DefaultStackSize;
#endif