forked from OSchip/llvm-project
Delete late parsed attributes instead of leaking them.
llvm-svn: 154746
This commit is contained in:
parent
6fc461984a
commit
bafc49a89c
|
@ -756,6 +756,7 @@ void Parser::ParseLexedAttributeList(LateParsedAttrList &LAs, Decl *D,
|
|||
for (unsigned i = 0, ni = LAs.size(); i < ni; ++i) {
|
||||
LAs[i]->addDecl(D);
|
||||
ParseLexedAttribute(*LAs[i], EnterScope, OnDefinition);
|
||||
delete LAs[i];
|
||||
}
|
||||
LAs.clear();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue