diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2013-12-04 15:32:26 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2013-12-04 15:32:26 +0000 |
commit | 66037479af2ac686d8d9304129643a95decfb1c0 (patch) | |
tree | aca983c18c6c96d81e8bb00e00f0573e282dba80 /clang/lib/Parse/ParseDecl.cpp | |
parent | c5f420e129ef0bf767e394b83906946d181a4537 (diff) | |
download | bcm5719-llvm-66037479af2ac686d8d9304129643a95decfb1c0.tar.gz bcm5719-llvm-66037479af2ac686d8d9304129643a95decfb1c0.zip |
When parsing ignored attribute arguments, presuming the first argument is an unresolved identifier the same way that we do for unknown arguments. This resolves PR18075, where we regressed the handling of OpenBSD's bounded attribute.
llvm-svn: 196387
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 4fce10fc32f..944942658ab 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -288,7 +288,8 @@ void Parser::ParseGNUAttributeArgs(IdentifierInfo *AttrName, // If we don't know how to parse this attribute, but this is the only // token in this argument, assume it's meant to be an identifier. - if (AttrKind == AttributeList::UnknownAttribute) { + if (AttrKind == AttributeList::UnknownAttribute || + AttrKind == AttributeList::IgnoredAttribute) { const Token &Next = NextToken(); IsIdentifierArg = Next.is(tok::r_paren) || Next.is(tok::comma); } |