]> granicus.if.org Git - clang/commit
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)
commit81fcac72061abd5a6e16184394357bf18f2321e3
treef7eb2f400f1b105380287f4aa929680c79eb3de9
parenta3078700de19a125356f60487d8868cdc3b232e3
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224204 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
test/Parser/access-spec-attrs.cpp