diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-01 16:38:28 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-10-01 16:38:28 +0000 |
commit | 99d1b295031ea4e74630914c14f94d919aa8e8dc (patch) | |
tree | c7e01596b00004583d6c1df4d7097e7f5fb205b2 /clang/lib/Frontend/Rewrite/HTMLPrint.cpp | |
parent | 8b021c382d3e4afdf310ab8bbddd8012c7c9dc93 (diff) | |
download | llvm-99d1b295031ea4e74630914c14f94d919aa8e8dc.zip llvm-99d1b295031ea4e74630914c14f94d919aa8e8dc.tar.gz llvm-99d1b295031ea4e74630914c14f94d919aa8e8dc.tar.bz2 |
Use StringRef for MemoryBuffer identifier API (NFC)
llvm-svn: 283043
Diffstat (limited to 'clang/lib/Frontend/Rewrite/HTMLPrint.cpp')
-rw-r--r-- | clang/lib/Frontend/Rewrite/HTMLPrint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/Rewrite/HTMLPrint.cpp b/clang/lib/Frontend/Rewrite/HTMLPrint.cpp index 15af644..11e431d 100644 --- a/clang/lib/Frontend/Rewrite/HTMLPrint.cpp +++ b/clang/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. |