[Lldb-commits] [PATCH] D125509: [LLDB][NFC] Decouple dwarf location table from DWARFExpression.

Zequan Wu via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 9 11:21:43 PDT 2022


zequanwu added inline comments.


================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp:180
     if (!Loc)
-      return Callback(Loc.takeError());
-    if (*Loc)
+      consumeError(Loc.takeError());
+    else if (*Loc)
----------------
rnk wrote:
> Did this change cause the presubmit test failure? DebugInfoDWARFTests/DWARFDie::getLocations looks related.
Yes. If I don't make this change, several existing tests crashed at here due to `Expected<T> must be checked before access or destruction`. I'm not sure how to fix this.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125509/new/

https://reviews.llvm.org/D125509



More information about the lldb-commits mailing list