File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -395,13 +395,11 @@ class sema
395
395
if (auto const * sym = std::get_if<symbol::active::declaration>(&s.sym )) {
396
396
if (sym->start && sym->declaration ->is (declaration_node::active::object) &&
397
397
(!sym->parameter ||
398
- sym->parameter ->pass == passing_style::copy ||
399
- sym->parameter ->pass == passing_style::move ||
400
- sym->parameter ->pass == passing_style::forward
401
- )
398
+ sym->parameter ->pass == passing_style::copy ||
399
+ sym->parameter ->pass == passing_style::move ||
400
+ sym->parameter ->pass == passing_style::forward
402
401
)
403
- // TODO: Extend move-from-last-use to locals once we can reliably detect rvalue-friendly contexts
404
- // (!sym->parameter || sym->parameter->pass == passing_style::copy || sym->parameter->pass == passing_style::move))
402
+ )
405
403
{
406
404
return sym;
407
405
}
You can’t perform that action at this time.
0 commit comments