summaryrefslogtreecommitdiffstats
path: root/lib/Frontend/Rewrite/HTMLPrint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Frontend/Rewrite/HTMLPrint.cpp')
-rw-r--r--lib/Frontend/Rewrite/HTMLPrint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/Rewrite/HTMLPrint.cpp b/lib/Frontend/Rewrite/HTMLPrint.cpp
index 15af644b77..11e431de0a 100644
--- a/lib/Frontend/Rewrite/HTMLPrint.cpp
+++ b/lib/Frontend/Rewrite/HTMLPrint.cpp
@@ -64,7 +64,7 @@ void HTMLPrinter::HandleTranslationUnit(ASTContext &Ctx) {
// Format the file.
FileID FID = R.getSourceMgr().getMainFileID();
const FileEntry* Entry = R.getSourceMgr().getFileEntryForID(FID);
- const char* Name;
+ StringRef Name;
// In some cases, in particular the case where the input is from stdin,
// there is no entry. Fall back to the memory buffer for a name in those
// cases.