diff options
Diffstat (limited to 'lib/AST/CommentSema.cpp')
-rw-r--r-- | lib/AST/CommentSema.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/AST/CommentSema.cpp b/lib/AST/CommentSema.cpp index c8422508d3..770d5bba24 100644 --- a/lib/AST/CommentSema.cpp +++ b/lib/AST/CommentSema.cpp @@ -481,7 +481,10 @@ void Sema::checkReturnsCommand(const BlockCommandComment *Command) { unsigned DiagKind; switch (ThisDeclInfo->ThisDecl->getKind()) { default: - DiagKind = 0; + if (ThisDeclInfo->IsObjCMethod) + DiagKind = 3; + else + DiagKind = 0; break; case Decl::CXXConstructor: DiagKind = 1; |