[llvm] [DebugInfo] Fix issue with debug line table offsets for empty functions (PR #142253)
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 2 10:23:49 PDT 2025
https://github.com/dwblaikie approved this pull request.
Guess we'll add this to the list of problems we'd avoid if we didn't have zero length functions (@rnk might be keeping a list/motivation to make a change here - I tried/thought about it a few years ago, but never quite decided on a path forward - probably just doing the same thing Apple and Sony do in LLVM for their platforms (trap unreachable, trap empty functions or something - there's a couple of features they both opt into) more generally/making it the only way to go may be the right thing)
https://github.com/llvm/llvm-project/pull/142253
More information about the llvm-commits
mailing list