diff options
author | Fangrui Song <i@maskray.me> | 2022-12-17 01:42:39 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-12-17 01:42:39 +0000 |
commit | 67ba5c507af2264ff79e4948b976477929436e86 (patch) | |
tree | 348168ed615f4ad4955b4870c6a1b49283288f87 /clang/lib/Lex/ModuleMap.cpp | |
parent | 6d1d055fad502e0751d59c31ca915737b73e002f (diff) | |
download | llvm-67ba5c507af2264ff79e4948b976477929436e86.zip llvm-67ba5c507af2264ff79e4948b976477929436e86.tar.gz llvm-67ba5c507af2264ff79e4948b976477929436e86.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-llvm.
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions