[all-commits] [llvm/llvm-project] 53243f: std::optional::value => operator*/operator->
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Dec 16 19:12:18 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 53243f2a296178b899dcc569475bdcc7e5f30d3b
https://github.com/llvm/llvm-project/commit/53243f2a296178b899dcc569475bdcc7e5f30d3b
Author: Fangrui Song <i at maskray.me>
Date: 2022-12-17 (Sat, 17 Dec 2022)
Changed paths:
M clang-tools-extra/clang-doc/HTMLGenerator.cpp
M clang-tools-extra/clangd/ClangdLSPServer.cpp
M clang-tools-extra/include-cleaner/unittests/AnalysisTest.cpp
M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Log Message:
-----------
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.
More information about the All-commits
mailing list