]> granicus.if.org Git - clang/commit
Fix raw lex crash and -frewrite-includes noeol-at-eof failure
authorAlp Toker <alp@nuanti.com>
Fri, 13 Dec 2013 17:04:55 +0000 (17:04 +0000)
committerAlp Toker <alp@nuanti.com>
Fri, 13 Dec 2013 17:04:55 +0000 (17:04 +0000)
commite3739cdb5fe9e51b464c8defce598d290466a712
tree6dcbbeedc0a381f445168bf630f6849179abee4c
parent1366f26a78a293be5054f32001ce73a4db4a82f8
Fix raw lex crash and -frewrite-includes noeol-at-eof failure

Raw lexers don't have a preprocessor so we need to null check.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197245 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/Lexer.cpp
lib/Rewrite/Frontend/InclusionRewriter.cpp
test/Frontend/rewrite-includes-eof.c [new file with mode: 0644]