summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commit3d699e02ae3912a987d60aa516bb0af718367889 (patch)
treeb63905bc3f989e42edb6584926e195ac44c437a9 /clang/lib
parentabdc72d97069c3afec2d5953bef047fb2142bd98 (diff)
downloadbcm5719-llvm-3d699e02ae3912a987d60aa516bb0af718367889.tar.gz
bcm5719-llvm-3d699e02ae3912a987d60aa516bb0af718367889.zip
A couple of small fixes to r167783
llvm-svn: 167791
Diffstat (limited to 'clang/lib')
-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 70bc019a740..77413b0ef5e 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud