diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-28 01:15:38 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-28 01:15:38 +0000 |
commit | cc7e882701dfd06e638ec971aa01fd5eb81fd1e6 (patch) | |
tree | 63d5b51ce6dd21aa9e865778f816d23ed1376bd4 /clang/lib/Sema | |
parent | 2b173121fee00c1a8da847cd650b86b4c4a98902 (diff) | |
download | bcm5719-llvm-cc7e882701dfd06e638ec971aa01fd5eb81fd1e6.tar.gz bcm5719-llvm-cc7e882701dfd06e638ec971aa01fd5eb81fd1e6.zip |
Tests and a minor bugfix for [dcl.attr.depend]p1 (C++11 [[carries_dependency]]
attribute).
llvm-svn: 173645
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index ea35330129b..bb77adfd45a 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -1816,7 +1816,7 @@ static void handleVecReturnAttr(Sema &S, Decl *D, const AttributeList &Attr) { } static void handleDependencyAttr(Sema &S, Decl *D, const AttributeList &Attr) { - if (!isFunctionOrMethod(D) && !isa<ParmVarDecl>(D)) { + if (!isa<FunctionDecl>(D) && !isa<ParmVarDecl>(D)) { S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type) << Attr.getName() << ExpectedFunctionMethodOrParameter; return; |