aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDeclAttr.cpp
diff options
context:
space:
mode:
authorKaelyn Uhrain <rikka@google.com>2012-11-13 00:18:47 +0000
committerKaelyn Uhrain <rikka@google.com>2012-11-13 00:18:47 +0000
commitd449c792d98f58277e02c0ddc8330cd9de5f82f5 (patch)
tree38b99b2dd36c23440247f72a8c88c0e1d6a82519 /lib/Sema/SemaDeclAttr.cpp
parentbae930d4c69a624881e66f1628ee615e149362f7 (diff)
A couple of small fixes to r167783
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r--lib/Sema/SemaDeclAttr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp
index 70bc019a74..77413b0ef5 100644
--- a/lib/Sema/SemaDeclAttr.cpp
+++ b/lib/Sema/SemaDeclAttr.cpp
@@ -2449,7 +2449,7 @@ static void handleWarnUnusedResult(Sema &S, Decl *D, const AttributeList &Attr)
if (!isFunction(D) && !isa<ObjCMethodDecl>(D) && !isa<CXXRecordDecl>(D)) {
S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
- << Attr.getName() << ExpectedFunctionOrMethod;
+ << Attr.getName() << ExpectedFunctionMethodOrClass;
return;
}