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
diff --git a/Parse/ParseObjc.cpp b/Parse/ParseObjc.cpp
index 19594d8..803fe2f 100644
--- a/Parse/ParseObjc.cpp
+++ b/Parse/ParseObjc.cpp
@@ -195,7 +195,7 @@
// 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 @@
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;
}