Closed aeubanks closed 4 months ago
@llvm/issue-subscribers-debuginfo
Author: Arthur Eubanks (aeubanks)
I poked around with a debugger - it seems like the issue is in https://github.com/llvm/llvm-project/blob/81e9a3c3fc9552ef0e1191da70aa0d44d918bcc0/llvm/lib/CodeGen/BranchFolding.cpp#L694-L699
The problem is that we remove and put back an unconditional branch instruction, but we don't preserve the debug info of the previous instruction.
reduced from a ubsan backtrace missing line info