diff options
author | Fangrui Song <i@maskray.me> | 2022-12-17 03:12:04 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-12-17 03:12:04 +0000 |
commit | 53243f2a296178b899dcc569475bdcc7e5f30d3b (patch) | |
tree | 68683b4276b04a8f6fc919e262fbec67c135a5ca /clang/lib/Lex/ModuleMap.cpp | |
parent | b08acee423935c16a1503335d78b84ccbbae4ef8 (diff) | |
download | llvm-53243f2a296178b899dcc569475bdcc7e5f30d3b.zip llvm-53243f2a296178b899dcc569475bdcc7e5f30d3b.tar.gz llvm-53243f2a296178b899dcc569475bdcc7e5f30d3b.tar.bz2 |
std::optional::value => operator*/operator->
value() has undesired exception checking semantics and calls
__throw_bad_optional_access in libc++. Moreover, the API is unavailable without
_LIBCPP_NO_EXCEPTIONS on older Mach-O platforms (see
_LIBCPP_AVAILABILITY_BAD_OPTIONAL_ACCESS).
This fixes check-clang-tools.
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions