[Lldb-commits] [lldb] [lldb][NFC] Small fixes identified by the clang static analyzer (PR #148773)

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 16 10:02:16 PDT 2025


================
@@ -2015,8 +2015,6 @@ llvm::Expected<Value> DWARFExpression::Evaluate(
       if (stack.size() < 1) {
         UpdateValueTypeFromLocationDescription(log, dwarf_cu,
                                                LocationDescriptionKind::Empty);
-        // Reset for the next piece.
-        dwarf4_location_description_kind = Memory;
----------------
jasonmolenda wrote:

It's a local variable in the `DW_OP_piece` block, and we return with an error here.  It's a dead store.

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


More information about the lldb-commits mailing list