diff options
Diffstat (limited to 'Parse/ParseDecl.cpp')
-rw-r--r-- | Parse/ParseDecl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Parse/ParseDecl.cpp b/Parse/ParseDecl.cpp index 1db426a93f..dc9edc332c 100644 --- a/Parse/ParseDecl.cpp +++ b/Parse/ParseDecl.cpp @@ -406,8 +406,10 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS) { else { // FIXME: restrict this to "id" and ObjC classnames. DS.Range.setEnd(Tok.getLocation()); ConsumeToken(); // The identifier - if (Tok.getKind() == tok::less) - ParseObjCProtocolReferences(); + if (Tok.getKind() == tok::less) { + llvm::SmallVector<IdentifierInfo *, 8> ProtocolRefs; + ParseObjCProtocolReferences(ProtocolRefs); + } continue; } } |