aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseObjc.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-11-06 21:48:47 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-11-06 21:48:47 +0000
commitd3fdcb5a1bf6bd5e54e18579c054ea3c292a0e28 (patch)
treecfbc8af077cfa7901d74170b849ad21c90512ccf /lib/Parse/ParseObjc.cpp
parent36df58ab9e3eb6823966ee16c5516eea1d88e541 (diff)
Fix a bogus objective-c warning with -pedantic.
(radar 7370882). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseObjc.cpp')
-rw-r--r--lib/Parse/ParseObjc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Parse/ParseObjc.cpp b/lib/Parse/ParseObjc.cpp
index b998c2e9ea..71aeb30927 100644
--- a/lib/Parse/ParseObjc.cpp
+++ b/lib/Parse/ParseObjc.cpp
@@ -1202,6 +1202,8 @@ Parser::DeclPtrTy Parser::ParseObjCPropertySynthesize(SourceLocation atLoc) {
}
if (Tok.isNot(tok::semi))
Diag(Tok, diag::err_expected_semi_after) << "@synthesize";
+ else
+ ConsumeToken(); // consume ';'
return DeclPtrTy();
}