]> granicus.if.org Git - clang/commitdiff
Fixed copy-paste error.
authorTed Kremenek <kremenek@apple.com>
Thu, 27 Mar 2008 05:52:45 +0000 (05:52 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 27 Mar 2008 05:52:45 +0000 (05:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48863 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/TextDiagnosticPrinter.cpp

index adfa88b85583a89edc2dec3f7af01f791b4570be..012c3abf946605f6e66600506fc570a77828a2e4 100644 (file)
@@ -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.