diff options
author | Krzysztof Parzyszek <Krzysztof.Parzyszek@amd.com> | 2025-07-18 13:34:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-18 13:34:15 -0500 |
commit | 6acc6991f83409be3ca6315edf8c7f381ebe4d40 (patch) | |
tree | b64c180de8c446639362cab18c0e6bbb0b79cc59 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 10b0dee97dd7e5a122116f7ccb26a19b081db9fd (diff) | |
download | llvm-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/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions