This matters for -E.

llvm-svn: 38664
This commit is contained in:
Chris Lattner 2006-07-04 21:11:41 +00:00
parent 73b6a2f62d
commit d5da3ea58d
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ unsigned SourceManager::getLineNumber(SourceLocation Loc) {
while (1) {
// Skip over the contents of the line.
// TODO: Vectorize this? This is very performance sensitive for programs
// with lots of diagnostics.
// with lots of diagnostics and in -E mode.
const unsigned char *NextBuf = (const unsigned char *)Buf;
while (*NextBuf != '\n' && *NextBuf != '\r' && *NextBuf != '\0')
++NextBuf;