[Lldb-commits] [lldb] [lldb] Cache register types by object UID and register size (PR #215874)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 13 03:23:08 PDT 2026
================
@@ -138,17 +115,36 @@ RegisterTypeBuilderClang::GetRegisterType(const RegisterInfo ®_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
More information about the lldb-commits
mailing list