summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/HTMLDiagnostics.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-04-02 05:17:38 +0000
committerTed Kremenek <kremenek@apple.com>2009-04-02 05:17:38 +0000
commita64bbc68fc8581aff8b6c413acbbbdd22b16ce0f (patch)
treebcb28e7e36bf1dfb02a0aebc0ac0b44f8594b877 /clang/lib/Frontend/HTMLDiagnostics.cpp
parent12f510aa8fa96a10df663702d93006d62725b079 (diff)
downloadbcm5719-llvm-a64bbc68fc8581aff8b6c413acbbbdd22b16ce0f.tar.gz
bcm5719-llvm-a64bbc68fc8581aff8b6c413acbbbdd22b16ce0f.zip
Also "flatten" PathLocations fed to the HTMLDiagnosticClient. We need a better
long-term strategy, but this should work for now. llvm-svn: 68297
Diffstat (limited to 'clang/lib/Frontend/HTMLDiagnostics.cpp')
-rw-r--r--clang/lib/Frontend/HTMLDiagnostics.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/HTMLDiagnostics.cpp b/clang/lib/Frontend/HTMLDiagnostics.cpp
index fbca057849b..83c2ac56a75 100644
--- a/clang/lib/Frontend/HTMLDiagnostics.cpp
+++ b/clang/lib/Frontend/HTMLDiagnostics.cpp
@@ -94,6 +94,7 @@ void HTMLDiagnostics::HandlePathDiagnostic(const PathDiagnostic* D) {
return;
}
+ const_cast<PathDiagnostic*>(D)->flattenLocations();
BatchedDiags.push_back(D);
}
OpenPOWER on IntegriCloud