diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-07-29 23:35:38 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-07-29 23:35:38 +0000 |
commit | 8cf50450122270798d628df34dbd0146d5f4ab45 (patch) | |
tree | a359f0c2962943e20377f93a1326e03672ce234e | |
parent | 9c426524f8c1e0cd3fb1b05ceefb903629a4cda8 (diff) | |
download | bcm5719-llvm-8cf50450122270798d628df34dbd0146d5f4ab45.tar.gz bcm5719-llvm-8cf50450122270798d628df34dbd0146d5f4ab45.zip |
Fix regression in range highlighting in HTML output.
llvm-svn: 54181
-rw-r--r-- | clang/Driver/HTMLDiagnostics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/Driver/HTMLDiagnostics.cpp b/clang/Driver/HTMLDiagnostics.cpp index 5fab2679563..869ec39bec5 100644 --- a/clang/Driver/HTMLDiagnostics.cpp +++ b/clang/Driver/HTMLDiagnostics.cpp @@ -420,8 +420,8 @@ void HTMLDiagnostics::HighlightRange(Rewriter& R, unsigned BugFileID, if (EndLineNo < StartLineNo) return; - if (!SM.getCanonicalFileID(LogicalStart) != BugFileID || - !SM.getCanonicalFileID(LogicalEnd) != BugFileID) + if (SM.getCanonicalFileID(LogicalStart) != BugFileID || + SM.getCanonicalFileID(LogicalEnd) != BugFileID) return; // Compute the column number of the end. |