This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [ABI/AArch64] Do not add subregs if some of them are present
ClosedPublic

Authored by mgorny on Oct 15 2021, 5:00 AM.

Details

Summary

Fix a bug introduced while refactoring ABIAArch64::AugmentRegisterInfo()
that caused subregisters to be added even if they were already present.
Instead, abort immediately if at least one subregister is found
(following ABIX86). While at it, add a test for that.

Diff Detail

Event Timeline

mgorny created this revision.Oct 15 2021, 5:00 AM
mgorny requested review of this revision.Oct 15 2021, 5:00 AM
labath accepted this revision.Oct 15 2021, 5:01 AM
This revision is now accepted and ready to land.Oct 15 2021, 5:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 15 2021, 5:08 AM