diff options
| author | Peter Rong <peterrong96@gmail.com> | 2025-10-20 09:16:53 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-20 09:16:53 -0700 |
| commit | 6b83e6896c7fba52730da52d0f370b4f3b52af0d (patch) | |
| tree | ef26ac3f48ad5112f20ac03172d69e2d3c054077 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 3d94f837f7270d50fcb7aed64fe31dc39bd77fb0 (diff) | |
| download | llvm-6b83e6896c7fba52730da52d0f370b4f3b52af0d.zip llvm-6b83e6896c7fba52730da52d0f370b4f3b52af0d.tar.gz llvm-6b83e6896c7fba52730da52d0f370b4f3b52af0d.tar.bz2 | |
[gsymutil] Fix how invalid LLVM_stmt_seq is set and used (#164015)
Previously, invalid offset is set to UINT64_MAX, this is not right when
DWARF32, which leads to incorrect debug into in GSYM, the branch:
```
if (StmtSeqVal != UNIT64_MAX)
StmtSeqOffset = StmtSeqVal;
```
will always be true.
In this PR, [commit
1](https://github.com/llvm/llvm-project/pull/164015/commits/b1983d671e0fd3b1f23627d7fc124550f183ebcc)
sets up a test that demonstrates the problem, [commit
2](https://github.com/llvm/llvm-project/pull/164015/commits/0d58ce4695c7909252a7d343f242b895ea128b52)
fixes it.
[Diffing commit 1 and
2](https://github.com/llvm/llvm-project/pull/164015/commits/0d58ce4695c7909252a7d343f242b895ea128b52#diff-019bdbc9922ad34fdfbcb524a9805f5af26c432540e76b87a6a5f73d9e0e853aL44)
in this PR shows how after the PR the symbolicated line number changed
from function definition to function body
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
