From 2b70af4169fc9eed425ff319a498fc09b88522e5 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 27 Mar 2008 05:52:45 +0000 Subject: [PATCH] Fixed copy-paste error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48863 91177308-0d34-0410-b5e6-96231b3b80d8 --- Driver/TextDiagnosticPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Driver/TextDiagnosticPrinter.cpp b/Driver/TextDiagnosticPrinter.cpp index adfa88b855..012c3abf94 100644 --- a/Driver/TextDiagnosticPrinter.cpp +++ b/Driver/TextDiagnosticPrinter.cpp @@ -62,7 +62,7 @@ void TextDiagnosticPrinter::HighlightRange(const SourceRange &R, SourceLocation LogicalEnd = SourceMgr.getLogicalLoc(R.getEnd()); unsigned EndLineNo = SourceMgr.getLineNumber(LogicalEnd); - if (EndLineNo < LineNo || LogicalStart.getFileID() != FileID) + if (EndLineNo < LineNo || LogicalEnd.getFileID() != FileID) return; // No intersection. // Compute the column number of the start. -- 2.40.0