diff options
author | Stephen Tozer <Stephen.Tozer@Sony.com> | 2021-05-20 16:33:38 +0100 |
---|---|---|
committer | Stephen Tozer <Stephen.Tozer@Sony.com> | 2021-05-20 17:37:28 +0100 |
commit | cf725dde9cb7379496f896f465f3faad511c331b (patch) | |
tree | 95bfe874cd0989c0604ed947049a25bdfb2229eb /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 943839870a0be356c40629c75d4583976cb9e812 (diff) | |
download | llvm-cf725dde9cb7379496f896f465f3faad511c331b.zip llvm-cf725dde9cb7379496f896f465f3faad511c331b.tar.gz llvm-cf725dde9cb7379496f896f465f3faad511c331b.tar.bz2 |
[DebugInfo] Handle DIArgList in FastISel or GlobalIsel
Currently, variadic dbg.values (i.e. those using a DIArgList as part of
their location) are not handled properly by FastISel or GlobalISel, and
will produce invalid DBG_VALUE instructions if they encounter them. This
patch fixes this issue by emitting undef DBG_VALUE instructions for
variadic dbg.values, so that no incorrect instruction is produced and
any prior variable location is terminated.
This is simply a quick-fix to prevent errors; a correct implementation
should come later for these ISel pipelines to ensure that we do not drop
debug information unnecessarily.
Differential Revision: https://reviews.llvm.org/D102500
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions