summaryrefslogtreecommitdiffstats
path: root/clang/Parse/ParseObjc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Parse/ParseObjc.cpp')
-rw-r--r--clang/Parse/ParseObjc.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/Parse/ParseObjc.cpp b/clang/Parse/ParseObjc.cpp
index 0b6f303a489..f7ab990d29e 100644
--- a/clang/Parse/ParseObjc.cpp
+++ b/clang/Parse/ParseObjc.cpp
@@ -1297,14 +1297,13 @@ Parser::ExprResult Parser::ParseObjCProtocolExpression(SourceLocation AtLoc)
Diag(Tok, diag::err_expected_ident);
return true;
}
-
- // FIXME: Do something with the protocol name
+ IdentifierInfo *protocolId = Tok.getIdentifierInfo();
ConsumeToken();
SourceLocation RParenLoc = MatchRHSPunctuation(tok::r_paren, LParenLoc);
- // FIXME
- return 0;
+ return Actions.ParseObjCProtocolExpression(protocolId, AtLoc, ProtoLoc,
+ LParenLoc, RParenLoc);
}
/// objc-selector-expression
OpenPOWER on IntegriCloud