[Lldb-commits] [lldb] [lldb][Commands] Fix memory find for Swift expressions (PR #143860)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 12 09:04:45 PDT 2025


================
@@ -928,6 +929,11 @@ EvaluateExpression(llvm::StringRef expression, StackFrame &frame,
     return llvm::createStringError(
         "expression evaluation failed. pass a string instead");
 
+  result_sp = result_sp->GetQualifiedRepresentationIfAvailable(
+      result_sp->GetDynamicValueType(), /*synthValue=*/true);
+  if (!result_sp)
+    return llvm::createStringError("failed to unwrap expression result type");
----------------
Michael137 wrote:

```suggestion
    return llvm::createStringError("failed to get dynamic result type");
```

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


More information about the lldb-commits mailing list