[libc] Use std::optional instead of llvm::Optional (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 15 Jan 2023 05:10:14 +0000 (21:10 -0800)
committerKazu Hirata <kazu@google.com>
Sun, 15 Jan 2023 05:10:14 +0000 (21:10 -0800)
commit660c33e51de20b5a414b029a6dbae8a33aefabd4
tree9f52600a50e60239bcc0aee7ef7fef9d6d0de756
parent9f72b78be5427ba0a7d029cf576429b515e142d8
[libc] Use std::optional instead of llvm::Optional (NFC)

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
libc/benchmarks/JSON.cpp
libc/benchmarks/automemcpy/lib/CodeGenMain.cpp
libc/benchmarks/automemcpy/lib/RandomFunctionGenerator.cpp