diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-12-09 16:15:07 -0800 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-12-09 16:17:14 -0800 |
commit | 347e1f621355d9b58901f3579fde91783c24ca29 (patch) | |
tree | f4a67d614591fd8c6044bee615af9d52a86baa6e /clang/lib/Frontend/CompilerInstance.cpp | |
parent | e3b2828b9d6d44c657f7feb0fd472773d0fdd671 (diff) | |
download | llvm-347e1f621355d9b58901f3579fde91783c24ca29.zip llvm-347e1f621355d9b58901f3579fde91783c24ca29.tar.gz llvm-347e1f621355d9b58901f3579fde91783c24ca29.tar.bz2 |
Frontend: Use a getVirtualFileRef for a named pipe main file, NFC
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 92e5208..17875a2 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -868,8 +868,8 @@ bool CompilerInstance::InitializeSourceManager(const FrontendInputFile &Input, FileMgr.getBufferForFile(&File.getFileEntry(), /*isVolatile=*/true); if (MB) { // Create a new virtual file that will have the correct size. - const FileEntry *FE = - FileMgr.getVirtualFile(InputFile, (*MB)->getBufferSize(), 0); + FileEntryRef FE = + FileMgr.getVirtualFileRef(InputFile, (*MB)->getBufferSize(), 0); SourceMgr.overrideFileContents(FE, std::move(*MB)); SourceMgr.setMainFileID( SourceMgr.createFileID(FE, SourceLocation(), Kind)); |