[lldb] [llvm] [lldb] Return an llvm::Expected from DWARFExpression::Evaluate (NFCI) (PR #94420)

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 01:43:08 PDT 2024


================
@@ -2042,7 +2043,7 @@ bool RegisterContextUnwind::ReadFrameAddress(
       return true;
     }
     UnwindLogMsg("Failed to set CFA value via DWARF expression: %s",
-                 error.AsCString());
+                 llvm::toString(result.takeError()).c_str());
----------------
DavidSpickett wrote:

Does `takeError` disarm the result? I am wondering if this will assert that no one has handled the error here.

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


More information about the llvm-commits mailing list