diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2022-08-16 21:22:27 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2022-08-16 21:27:05 +0000 |
commit | 585f62be1a438ca132aa443e556d102bc908a072 (patch) | |
tree | eed220a57a59a9c91f295dedd48c60f043e02915 /llvm/lib/Transforms/Utils/BuildLibCalls.cpp | |
parent | ee986ab72711d838a7e7ff363c0d2efa7dba91e8 (diff) | |
download | llvm-585f62be1a438ca132aa443e556d102bc908a072.zip llvm-585f62be1a438ca132aa443e556d102bc908a072.tar.gz llvm-585f62be1a438ca132aa443e556d102bc908a072.tar.bz2 |
CodeGen: correct handling of debug info generation for aliases
When aliasing a static array, the aliasee is going to be a GEP which
points to the value. We should strip pointer casts before forming the
reference. This was occluded by the use of opaque pointers.
This problem has existed since the introduction of the debug info
generation for aliases in b1ea0191a42074341847d767609f66a26b6d5a41. The
test case would assert due to the invalid cast with or without
`-no-opaque-pointers` at that revision.
Fixes: #57179
Diffstat (limited to 'llvm/lib/Transforms/Utils/BuildLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions