diff options
Diffstat (limited to 'Parse/ParseObjc.cpp')
-rw-r--r-- | Parse/ParseObjc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Parse/ParseObjc.cpp b/Parse/ParseObjc.cpp index 19594d8991..803fe2f670 100644 --- a/Parse/ParseObjc.cpp +++ b/Parse/ParseObjc.cpp @@ -195,7 +195,7 @@ Parser::DeclTy *Parser::ParseObjCAtInterfaceDeclaration( // The @ sign was already consumed by ParseObjCInterfaceDeclList(). if (Tok.isObjCAtKeyword(tok::objc_end)) { ConsumeToken(); // the "end" identifier - return 0; + return ClsType; } Diag(Tok, diag::err_objc_missing_end); return 0; @@ -370,7 +370,7 @@ Parser::DeclTy *Parser::ParseObjCMethodPrototype(DeclTy *CDecl) { DeclTy *MDecl = ParseObjCMethodDecl(methodType, methodLoc); // Since this rule is used for both method declarations and definitions, - // the caller is responsible for consuming the ';'. + // the caller is (optionally) responsible for consuming the ';'. return MDecl; } |