]> granicus.if.org Git - clang/commitdiff
Fix regression in range highlighting in HTML output.
authorTed Kremenek <kremenek@apple.com>
Tue, 29 Jul 2008 23:35:38 +0000 (23:35 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 29 Jul 2008 23:35:38 +0000 (23:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54181 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/HTMLDiagnostics.cpp

index 5fab2679563036ad1b8332f44b28d59da6f9149d..869ec39bec562eec59056bc549b3913e57bde394 100644 (file)
@@ -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.