Also "flatten" PathLocations fed to the HTMLDiagnosticClient. We need a better
authorTed Kremenek <kremenek@apple.com>
Thu, 2 Apr 2009 05:17:38 +0000 (05:17 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 2 Apr 2009 05:17:38 +0000 (05:17 +0000)
long-term strategy, but this should work for now.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68297 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/HTMLDiagnostics.cpp

index fbca057849ba4fd75e5551c59beb1a7b08dacf4c..83c2ac56a7585b8eab21849c52e19d2883040935 100644 (file)
@@ -94,6 +94,7 @@ void HTMLDiagnostics::HandlePathDiagnostic(const PathDiagnostic* D) {
     return;
   }
   
+  const_cast<PathDiagnostic*>(D)->flattenLocations();
   BatchedDiags.push_back(D);
 }