Argyrios Kyrtzidis
d391046930
Have SourceManager::getLocForEndOfFile() point at the "EOF" location of the FileID.
...
This fixes a crash due to SourceManager::getLocForEndOfFile() returning an off-by-one location
when the the FileID is for an empty file.
rdar://13803893
llvm-svn: 181285
2013-05-07 04:29:22 +00:00
Daniel Dunbar
cf3f2c49ea
Revert r167801, "[preprocessor] When #including something that contributes no
...
tokens at all,". This change broke External/Nurbs in LLVM test-suite.
llvm-svn: 167858
2012-11-13 19:12:37 +00:00
Argyrios Kyrtzidis
4f10a3e9f0
[preprocessor] When #including something that contributes no tokens at all,
...
don't recursively continue lexing.
This avoids a stack overflow with a sequence of many empty #includes.
rdar://11988695
llvm-svn: 167801
2012-11-13 01:03:15 +00:00