diff options
author | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | 2022-03-10 00:41:30 +0530 |
---|---|---|
committer | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | 2022-03-10 00:41:30 +0530 |
commit | 94823500a7288a61c6d68becf2cc82e853a80e52 (patch) | |
tree | 46e83db73030ffb80e127467359813b9d3fc702d /llvm/unittests/Support/CommandLineTest.cpp | |
parent | c3a7627cacc6cbe2301a253daeb3e6953e5e0d1d (diff) | |
download | llvm-94823500a7288a61c6d68becf2cc82e853a80e52.zip llvm-94823500a7288a61c6d68becf2cc82e853a80e52.tar.gz llvm-94823500a7288a61c6d68becf2cc82e853a80e52.tar.bz2 |
[DebugInfo][SROA] Correct debug info for global variables in case of SROA
The existing handling produced crash for test case (attached with patch).
Now the function transferSRADebugInfo is modified to
- Ignore the current variable if it starts after the current Fragment.
- Ignore the current variable if it ends before the current Fragment.
- Generate (!DIExpression()) if current variable completely fits the
current Fragment.
- Otherwise (as earlier), generate the DW_OP_LLVM_fragment in IR if current
Fragment partially defines current variable.
Reviewed By: aprantl
Differential Revision: https://reviews.llvm.org/D121107
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions