llvm-project
31cf6df0 - [coroutines] Use DILocation from new storage for hoisted dbg.declare (#75104)

Commit
1 year ago
[coroutines] Use DILocation from new storage for hoisted dbg.declare (#75104) Make the hoisted dbg.declare inherent the DILocation scope from the new storage. After hoisting, the dbg.declare is moved into the block that defines the new storage. This could create an inconsistency in the debug location scope hierarchy where the scope of hoisted dbg.declare (i.e. DILexicalBlock) is enclosed with the scope of the block (i.e. DISubprogram). This confuses LiveDebugValues pass to think that the hoisted dbg.declare is killed in that block and does not generate DBG_VALUE in other blocks. Debugger won't be able to track its value anymore.
Author
Parents
Loading