diff options
author | Matheus Izvekov <mizvekov@gmail.com> | 2021-03-19 03:32:06 +0100 |
---|---|---|
committer | Matheus Izvekov <mizvekov@gmail.com> | 2021-06-17 01:56:38 +0200 |
commit | 12c90e2e25dfd1d38250055efc21acb42d158912 (patch) | |
tree | d2fef87c951dbb03e84495c707c4c2677431e35e /lldb/source/Commands/CommandObjectGUI.cpp | |
parent | b5e22e6d4207cf939618492d365293fe6035075d (diff) | |
download | llvm-12c90e2e25dfd1d38250055efc21acb42d158912.zip llvm-12c90e2e25dfd1d38250055efc21acb42d158912.tar.gz llvm-12c90e2e25dfd1d38250055efc21acb42d158912.tar.bz2 |
[clang] NRVO: Improvements and handling of more cases.
This expands NRVO propagation for more cases:
Parse analysis improvement:
* Lambdas and Blocks with dependent return type can have their variables
marked as NRVO Candidates.
Variable instantiation improvements:
* Fixes crash when instantiating NRVO variables in Blocks.
* Functions, Lambdas, and Blocks which have auto return type have their
variables' NRVO status propagated. For Blocks with non-auto return type,
as a limitation, this propagation does not consider the actual return
type.
This also implements exclusion of VarDecls which are references to
dependent types.
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Reviewed By: Quuxplusone
Differential Revision: https://reviews.llvm.org/D99696
Diffstat (limited to 'lldb/source/Commands/CommandObjectGUI.cpp')
0 files changed, 0 insertions, 0 deletions