Skip to content

Commit 9eed342

Browse files
committed
ClangImporter: Adjust to r355777, PCMCache => ModuleCache
Upstream Clang renamed getPCMCache() to getModuleCache() in r355777, stopped passing it the Preprocessor passing it directly to ASTReader instead. Adapt to those API changes. rdar://problem/48545366 (cherry picked from commit 131cff7)
1 parent 2924be7 commit 9eed342

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,6 @@ bool ClangImporter::canReadPCH(StringRef PCHFilename) {
759759
*clangDiags,
760760
CI.getLangOpts(),
761761
clangSrcMgr,
762-
CI.getPCMCache(),
763762
headerSearchInfo,
764763
(clang::ModuleLoader &)CI,
765764
/*IILookup=*/nullptr,
@@ -772,7 +771,7 @@ bool ClangImporter::canReadPCH(StringRef PCHFilename) {
772771
// Note: Reusing the PCHContainerReader or ModuleFileExtensions could be
773772
// dangerous.
774773
std::unique_ptr<clang::ASTReader> Reader(new clang::ASTReader(
775-
PP, &ctx, CI.getPCHContainerReader(),
774+
PP, CI.getModuleCache(), &ctx, CI.getPCHContainerReader(),
776775
CI.getFrontendOpts().ModuleFileExtensions,
777776
CI.getHeaderSearchOpts().Sysroot,
778777
/*DisableValidation*/ false,

0 commit comments

Comments
 (0)