diff options
author | Fangrui Song <i@maskray.me> | 2022-12-16 23:41:36 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-12-16 23:41:36 +0000 |
commit | 036e092282f50d65d78a47d3a009e8baf2e74f46 (patch) | |
tree | ca169675365b06105d9bfa2a6957f753c80194ec /clang/lib/Frontend/TestModuleFileExtension.cpp | |
parent | 7a91e00d915c638bfb4864826bc445211e0e41d7 (diff) | |
download | llvm-036e092282f50d65d78a47d3a009e8baf2e74f46.zip llvm-036e092282f50d65d78a47d3a009e8baf2e74f46.tar.gz llvm-036e092282f50d65d78a47d3a009e8baf2e74f46.tar.bz2 |
[CodeGen] 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 LLVMMIRParser, LLVMGlobalISel, LLVMAsmPrinter, LLVMSelectionDAG.
Diffstat (limited to 'clang/lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions