[PATCH] D34185: [Parser][ObjC] Avoid crashing when skipping to EOF while parsing an ObjC interface/implementation
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 19 10:16:05 PDT 2017
ahatanak added a comment.
Thanks, LGTM.
================
Comment at: lib/Parse/ParseObjc.cpp:3636
+ Eof.setEofData(MCDecl);
+ Eof.setLocation(Tok.getLocation());
+ LM.Toks.push_back(Eof);
----------------
You can use OrigLoc instead of calling Tok.getLocation().
Repository:
rL LLVM
https://reviews.llvm.org/D34185
More information about the cfe-commits
mailing list