[Lldb-commits] [lldb] [lldb][nfc] Factor out code checking if Variable is in scope (PR #143572)
Felipe de Azevedo Piovezan via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 10 15:04:07 PDT 2025
================
@@ -321,6 +302,27 @@ bool Variable::IsInScope(StackFrame *frame) {
return false;
}
+bool Variable::IsInScope(Block &block, Address addr) {
----------------
felipepiovezan wrote:
>Like [std::shared_ptr](https://en.cppreference.com/w/cpp/memory/shared_ptr.html), a typical implementation of weak_ptr stores two pointers:
a pointer to the control block; and
the stored pointer of the shared_ptr it was constructed from.
Seems like it is cheap?
https://github.com/llvm/llvm-project/pull/143572
More information about the lldb-commits
mailing list