From cc7e882701dfd06e638ec971aa01fd5eb81fd1e6 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 28 Jan 2013 01:15:38 +0000 Subject: Tests and a minor bugfix for [dcl.attr.depend]p1 (C++11 [[carries_dependency]] attribute). llvm-svn: 173645 --- clang/lib/Sema/SemaDeclAttr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Sema') 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(D)) { + if (!isa(D) && !isa(D)) { S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type) << Attr.getName() << ExpectedFunctionMethodOrParameter; return; -- cgit v1.2.3