]> granicus.if.org Git - clang/commit
[Parser][ObjC] Use an artificial EOF token while parsing lexed ObjC methods
authorAlex Lorenz <arphaman@gmail.com>
Mon, 19 Jun 2017 17:53:21 +0000 (17:53 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 19 Jun 2017 17:53:21 +0000 (17:53 +0000)
commit2a29f3b4c8d5c9042103398f643bf8b32a5d9974
treeb14ce0a327d8f6333fa258fff1e0d1bc1013e571
parent1b12bf4092573db0add5649e9fbe9925a141c328
[Parser][ObjC] Use an artificial EOF token while parsing lexed ObjC methods

This change avoid a crash that occurred when skipping to EOF while parsing an
ObjC interface/implementation.

rdar://31963299

Differential Revision: https://reviews.llvm.org/D34185

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305719 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseObjc.cpp
test/Parser/objc-at-implementation-eof-crash.m [new file with mode: 0644]
test/Parser/objc-at-interface-eof-crash.m [new file with mode: 0644]