diff options
author | Fangrui Song <i@maskray.me> | 2022-12-17 22:43:03 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-12-17 22:43:03 +0000 |
commit | 1792821c8308755593c114c3b7ae8ce33bdb08e9 (patch) | |
tree | 94e7c19fb5d8c305a93b9154c42a3515164fcebd /clang/lib/Sema/SemaModule.cpp | |
parent | 411512a7ce9c960bb2ac5b976d45f7ca1a2f63de (diff) | |
download | llvm-1792821c8308755593c114c3b7ae8ce33bdb08e9.zip llvm-1792821c8308755593c114c3b7ae8ce33bdb08e9.tar.gz llvm-1792821c8308755593c114c3b7ae8ce33bdb08e9.tar.bz2 |
Optional: Deprecated value()
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716/19
value() is a 15.0.0 API for std::optional migration.
std::optional::value() has undesired exception checking semantics and is
unavailable in older Xcode (see
_LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS). Deprecate value() to prevent
new in-tree uses which may accidentally cause build breakage for older
Xcode when contributors perform std::optional migrating.
Some downtream MLIR projects such as tensorflow/mlir-hlo, stablehlo use
value(), so we do not remove it now.
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions