[llvm] [coroutines] Use DILocation from new storage for hoisted dbg.declare (PR #75104)

Matheus Izvekov via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 12 21:30:06 PST 2023


mizvekov wrote:

This caused a regression building one of my projects, clang now generates invalid IR:
```
mismatched subprogram between llvm.dbg.declare variable and !dbg attachment
  call void @llvm.dbg.declare(metadata ptr %4, metadata !34468, metadata !DIExpression(DW_OP_plus_uconst, 176)), !dbg !34467
```

I can confirm reverting this fixes the issue.

I am going to revert this on main now, and will work to provide a reduced reproducer shortly.

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


More information about the llvm-commits mailing list