This is an archive of the discontinued LLVM Phabricator instance.

[MC] Check if register is non-null before calling isSubRegisterEq (NFCI)
ClosedPublic

Authored by barannikov88 on May 23 2023, 9:15 PM.

Details

Summary

D151036 adds an assertions that prohibits iterating over sub- and
super-registers of a null register. This is already the case when
iterating over register units of a null register, and worked by
accident for sub- and super-registers.

Diff Detail

Event Timeline

barannikov88 created this revision.May 23 2023, 9:15 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
barannikov88 requested review of this revision.May 23 2023, 9:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2023, 9:15 PM

Rebase onto 8e16365c to get a green mark

Amir accepted this revision.May 24 2023, 10:25 PM
This revision is now accepted and ready to land.May 24 2023, 10:25 PM