================
@@ -138,17 +115,36 @@ RegisterTypeBuilderClang::GetRegisterType(const 
RegisterInfo &reg_info) {
       ScratchTypeSystemClang::GetForTarget(m_target);
   assert(type_system);
 
+  if (m_cached_type_system.lock() != type_system) {
----------------
DavidSpickett wrote:

Which events cause the Target's scratch type system to be reset/changed?

If it does change, we must throw away references to the old one - that part I 
agree with.

https://github.com/llvm/llvm-project/pull/215874
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to