commit | b9b07ce5f0e184e4dd5bcc9bb89b8802759d452b | [log] [tgz] |
---|---|---|
author | Fangrui Song <i@maskray.me> | Sat Dec 17 01:42:39 2022 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Dec 16 17:47:38 2022 -0800 |
tree | 50ef008bb01ce98cbb7f5f0e8cd5d1562e68cd87 | |
parent | 87995eee55ac0732905417f5d6f6b95f94e6462b [diff] |
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. GitOrigin-RevId: 67ba5c507af2264ff79e4948b976477929436e86