aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2024-06-27 16:00:07 +0100
committerGitHub <noreply@github.com>2024-06-27 16:00:07 +0100
commit8a7730fb88445a019fe150d5db4f6642e43afd04 (patch)
treebfe3df7dc441d3139c7d95b48781eae6dda28865 /llvm/lib/CodeGen/MachineInstr.cpp
parentf1c54d72104cb163120c6ab65587766b12e7d959 (diff)
downloadllvm-8a7730fb88445a019fe150d5db4f6642e43afd04.zip
llvm-8a7730fb88445a019fe150d5db4f6642e43afd04.tar.gz
llvm-8a7730fb88445a019fe150d5db4f6642e43afd04.tar.bz2
[lldb] Don't call AddRemoteRegisters if the target XML did not include any registers (#96907)
Fixes #92541 When e69a3d18f48bc0d81b5dd12e735a2ec898ce64d added fallback register layouts, it assumed that the choices were target XML with registers, or no target XML at all. In the linked issue, a user has a debug stub that does have target XML, but it's missing register information. This caused us to finalize the register information using an empty set of registers got from target XML, then fail an assert when we attempted to add the fallback set. Since we think we've already completed the register information. This change adds a check to prevent that first call and expands the existing tests to check each architecture without target XML and with target XML missing register information.
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions