diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 261d8efeb9..43f9c78592 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -2300,7 +2300,8 @@ Decl *Sema::ActOnMethodDeclaration( } } else { // get the type for "id". resultDeclType = Context.getObjCIdType(); - Diag(MethodLoc, diag::warn_missing_method_return_type); + Diag(MethodLoc, diag::warn_missing_method_return_type) + << FixItHint::CreateInsertion(SelectorStartLoc, "(id)"); } ObjCMethodDecl* ObjCMethod = |