vsapsai added inline comments.

================
Comment at: clang/unittests/Serialization/ModuleCacheTest.cpp:125-126
+  ASSERT_TRUE(Invocation2);
+  CompilerInstance Instance2(Instance.getPCHContainerOperations(),
+                             &Instance.getModuleCache());
+  Instance2.setDiagnostics(Diags.get());
----------------
Haven't rechecked the code more carefully but had an idea is that if we want to 
allow InMemoryModuleCache reuse between multiple CompilerInstance, safer API 
would be to transfer ModuleCache ownership to the new CompilerInstance and 
maybe make all records in the cache purgeable. But that's applicable only if 
ModuleCache reuse is important.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105328/new/

https://reviews.llvm.org/D105328

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to