diff options
author | Steve Naroff <snaroff@apple.com> | 2007-09-10 20:51:04 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-09-10 20:51:04 +0000 |
commit | 2bd42fadafddc8acf744b57a970bdc96a077c617 (patch) | |
tree | c154b5ae486a11b6c41c599d9531ef46dd6b3a57 /Parse/ParseObjc.cpp | |
parent | e3a2ca7e30601cdd31c77a830f4cc487851e8096 (diff) |
Some small tweaks to the recent Objc support...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41803 91177308-0d34-0410-b5e6-96231b3b80d8
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; } |