summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-01-28 01:15:38 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-01-28 01:15:38 +0000
commitcc7e882701dfd06e638ec971aa01fd5eb81fd1e6 (patch)
tree63d5b51ce6dd21aa9e865778f816d23ed1376bd4 /clang/lib/Sema
parent2b173121fee00c1a8da847cd650b86b4c4a98902 (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud