@@ -864,7 +864,8 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI,
864864
865865 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile (
866866 InputFile, CI.getPCHContainerReader (), ASTUnit::LoadPreprocessorOnly,
867- nullptr , ASTDiags, CI.getFileSystemOpts (), CI.getHeaderSearchOpts ());
867+ CI.getVirtualFileSystemPtr (), nullptr , ASTDiags, CI.getFileSystemOpts (),
868+ CI.getHeaderSearchOpts ());
868869 if (!AST)
869870 return false ;
870871
@@ -931,9 +932,9 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI,
931932 StringRef InputFile = Input.getFile ();
932933
933934 std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile (
934- InputFile, CI.getPCHContainerReader (), ASTUnit::LoadEverything, nullptr ,
935- Diags, CI.getFileSystemOpts (), CI.getHeaderSearchOpts (),
936- &CI.getLangOpts ());
935+ InputFile, CI.getPCHContainerReader (), ASTUnit::LoadEverything,
936+ CI.getVirtualFileSystemPtr (), nullptr , Diags, CI.getFileSystemOpts (),
937+ CI. getHeaderSearchOpts (), &CI.getLangOpts ());
937938
938939 if (!AST)
939940 return false ;
0 commit comments