From fd96684034c29c59a134dfec20d61c132e60ef30 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 26 Sep 2008 01:13:35 +0000 Subject: [PATCH] Make clang preprocessed output a bit more like gcc output. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56636 91177308-0d34-0410-b5e6-96231b3b80d8 --- Driver/PrintPreprocessedOutput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Driver/PrintPreprocessedOutput.cpp b/Driver/PrintPreprocessedOutput.cpp index f0a40160c0..2b3570c675 100644 --- a/Driver/PrintPreprocessedOutput.cpp +++ b/Driver/PrintPreprocessedOutput.cpp @@ -120,7 +120,7 @@ bool PrintPPOutputPPCallbacks::MoveToLine(SourceLocation Loc) { // If this line is "close enough" to the original line, just print newlines, // otherwise print a #line directive. - if (LineNo-CurLine < 8) { + if (LineNo-CurLine <= 8) { if (LineNo-CurLine == 1) OS << '\n'; else if (LineNo == CurLine)