================
@@ -872,20 +872,23 @@ class CompilerInstance : public ModuleLoader {
class ThreadSafeCloneConfig {
IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS;
DiagnosticConsumer &DiagConsumer;
+ std::shared_ptr<ModuleCache> ModCache;
std::shared_ptr<ModuleDependencyCollector> ModuleDepCollector;
public:
ThreadSafeCloneConfig(
IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS,
- DiagnosticConsumer &DiagConsumer,
+ DiagnosticConsumer &DiagConsumer, std::shared_ptr<ModuleCache>
ModCache,
std::shared_ptr<ModuleDependencyCollector> ModuleDepCollector =
nullptr)
- : VFS(std::move(VFS)), DiagConsumer(DiagConsumer),
+ : VFS(std::move(VFS)), DiagConsumer(DiagConsumer), ModCache(ModCache),
----------------
benlangmuir wrote:
Nit: `std::move(ModCache)`?
https://github.com/llvm/llvm-project/pull/179510
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits