summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/HTMLDiagnostics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Checker/HTMLDiagnostics.cpp')
-rw-r--r--clang/lib/Checker/HTMLDiagnostics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/HTMLDiagnostics.cpp b/clang/lib/Checker/HTMLDiagnostics.cpp
index b175fcaaeb8..7fcb0256ddf 100644
--- a/clang/lib/Checker/HTMLDiagnostics.cpp
+++ b/clang/lib/Checker/HTMLDiagnostics.cpp
@@ -300,7 +300,7 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D,
}
if (FilesMade)
- FilesMade->push_back(H.getLast());
+ FilesMade->push_back(llvm::sys::path::filename(H.str()));
// Emit the HTML to disk.
for (RewriteBuffer::iterator I = Buf->begin(), E = Buf->end(); I!=E; ++I)
OpenPOWER on IntegriCloud