aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/ArchitectureSet.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <Krzysztof.Parzyszek@amd.com>2025-07-18 13:34:15 -0500
committerGitHub <noreply@github.com>2025-07-18 13:34:15 -0500
commit6acc6991f83409be3ca6315edf8c7f381ebe4d40 (patch)
treeb64c180de8c446639362cab18c0e6bbb0b79cc59 /llvm/lib/TextAPI/ArchitectureSet.cpp
parent10b0dee97dd7e5a122116f7ccb26a19b081db9fd (diff)
downloadllvm-6acc6991f83409be3ca6315edf8c7f381ebe4d40.zip
llvm-6acc6991f83409be3ca6315edf8c7f381ebe4d40.tar.gz
llvm-6acc6991f83409be3ca6315edf8c7f381ebe4d40.tar.bz2
[STLForwardCompat] Improve category handling in transformOptional (#149539)
The old version would prefer the "const &" overload over the "&&" one unless the former was not allowed in the given situation. In particular, if the function passed was "[](auto &&)" the argument would be "const &" even if the value passed to transformOptional was an rvalue reference. This version improves the handling of expression categories, and the lambda argument category will reflect the argument category in the above scenario.
Diffstat (limited to 'llvm/lib/TextAPI/ArchitectureSet.cpp')
0 files changed, 0 insertions, 0 deletions