[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
Showing
- lib/Parse/ParseObjc.cpp 11 additions, 1 deletionlib/Parse/ParseObjc.cpp
- test/Parser/objc-at-implementation-eof-crash.m 21 additions, 0 deletionstest/Parser/objc-at-implementation-eof-crash.m
- test/Parser/objc-at-interface-eof-crash.m 21 additions, 0 deletionstest/Parser/objc-at-interface-eof-crash.m
Loading
Please register or sign in to comment