[llvm] [CodeExtractor] Preserve the original DIExpression for extracted inputs. (PR #224360)

Oliver Hunt via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 27 15:07:49 PDT 2026


ojhunt wrote:

This causes a build break when compiling with assertions enabled

```cpp
  if (!DwarfExpr.addExpression(
          std::move(Cursor),
          [&](unsigned Idx, DIExpressionCursor &Cursor) -> bool {
            return AddEntry(DVal->getLocEntries()[Idx], Cursor); // <-- Idx OoB when building compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
          }))
    return;
```

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


More information about the llvm-commits mailing list