[Lldb-commits] [lldb] [LLDB] Add type casting to DIL, part 2 or 3 (PR #170332)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 9 03:27:00 PST 2025


================
@@ -21,6 +21,37 @@
 
 namespace lldb_private::dil {
 
+lldb::ValueObjectSP
+GetDynamicOrSyntheticValue(lldb::ValueObjectSP in_valobj_sp,
+                           lldb::DynamicValueType use_dynamic,
+                           bool use_synthetic) {
+  if (!in_valobj_sp)
+    return in_valobj_sp;
+
+  lldb::ValueObjectSP value_sp = in_valobj_sp;
+  Target *target = value_sp->GetTargetSP().get();
----------------
Michael137 wrote:

We don't seem to be using `target` for anything

https://github.com/llvm/llvm-project/pull/170332


More information about the lldb-commits mailing list