Skip to content

Commit d3c699a

Browse files
author
Davide Italiano
committed
Revert "ClangImporter: Share a module cache between CompilerInstances"
This reverts commit a42bc62.
1 parent c189561 commit d3c699a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,8 +1395,7 @@ std::string ClangImporter::getBridgingHeaderContents(StringRef headerPath,
13951395
invocation->getPreprocessorOpts().resetNonModularOptions();
13961396

13971397
clang::CompilerInstance rewriteInstance(
1398-
Impl.Instance->getPCHContainerOperations(),
1399-
&Impl.Instance->getModuleCache());
1398+
Impl.Instance->getPCHContainerOperations());
14001399
rewriteInstance.setInvocation(invocation);
14011400
rewriteInstance.createDiagnostics(new clang::IgnoringDiagConsumer);
14021401

@@ -1455,8 +1454,7 @@ ClangImporter::emitBridgingPCH(StringRef headerPath,
14551454
invocation->getLangOpts()->CacheGeneratedPCH = true;
14561455

14571456
clang::CompilerInstance emitInstance(
1458-
Impl.Instance->getPCHContainerOperations(),
1459-
&Impl.Instance->getModuleCache());
1457+
Impl.Instance->getPCHContainerOperations());
14601458
emitInstance.setInvocation(std::move(invocation));
14611459
emitInstance.createDiagnostics(&Impl.Instance->getDiagnosticClient(),
14621460
/*ShouldOwnClient=*/false);

0 commit comments

Comments
 (0)