Revert Attributes::Attrs back to return an attr_list and mark it deprecated

This commit is contained in:
Tim Wojtulewicz 2020-06-29 17:47:45 -07:00
parent e1338cc379
commit 5b8aaf6497
4 changed files with 36 additions and 13 deletions

View file

@ -2076,7 +2076,7 @@ bool AssignExpr::TypeCheck(const IntrusivePtr<Attributes>& attrs)
std::unique_ptr<std::vector<IntrusivePtr<Attr>>> attr_copy;
if ( attrs )
attr_copy = std::make_unique<std::vector<IntrusivePtr<Attr>>>(attrs->Attrs());
attr_copy = std::make_unique<std::vector<IntrusivePtr<Attr>>>(attrs->GetAttrs());
bool empty_list_assignment = (op2->AsListExpr()->Exprs().empty());
@ -2172,7 +2172,7 @@ bool AssignExpr::TypeCheck(const IntrusivePtr<Attributes>& attrs)
if ( sce->GetAttrs() )
{
const auto& a = sce->GetAttrs()->Attrs();
const auto& a = sce->GetAttrs()->GetAttrs();
attr_copy = std::make_unique<std::vector<IntrusivePtr<Attr>>>(a);
}