Sema: attribute((annotate)) must have at least one argument
authorDavid Majnemer <david.majnemer@gmail.com>
Sun, 14 Dec 2014 01:05:01 +0000 (01:05 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sun, 14 Dec 2014 01:05:01 +0000 (01:05 +0000)
commit706f315e65841a964029c950e8569e6403f7793f
treef90820dcafe3c83fa60f989422230a25ae75a29a
parent0cb861634b680b76985a5fbd7240fe3084884daf
Sema: attribute((annotate)) must have at least one argument

Sema::handleAnnotateAttr expects that some basic validation is done on
the given AttributeList.  However, ProcessAccessDeclAttributeList called
it directly.  Instead, pass the list to ProcessDeclAttribute.

This fixes PR21847.

llvm-svn: 224204
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/Parser/access-spec-attrs.cpp