commit | a64bbc68fc8581aff8b6c413acbbbdd22b16ce0f | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Thu Apr 02 05:17:38 2009 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Thu Apr 02 05:17:38 2009 +0000 |
tree | bcb28e7e36bf1dfb02a0aebc0ac0b44f8594b877 | |
parent | 12f510aa8fa96a10df663702d93006d62725b079 [diff] [blame] |
Also "flatten" PathLocations fed to the HTMLDiagnosticClient. We need a better long-term strategy, but this should work for now. llvm-svn: 68297
diff --git a/clang/lib/Frontend/HTMLDiagnostics.cpp b/clang/lib/Frontend/HTMLDiagnostics.cpp index fbca057..83c2ac5 100644 --- a/clang/lib/Frontend/HTMLDiagnostics.cpp +++ b/clang/lib/Frontend/HTMLDiagnostics.cpp
@@ -94,6 +94,7 @@ return; } + const_cast<PathDiagnostic*>(D)->flattenLocations(); BatchedDiags.push_back(D); }