This is an archive of the discontinued LLVM Phabricator instance.

[Assignment Tracking] Fix fragment index error in getDerefOffsetInBytes
ClosedPublic

Authored by Orlando on Feb 8 2023, 2:59 AM.

Details

Summary

Without this patch getDerefOffsetInBytes incorrectly always returns std::nullopt for expressions with fragments due to an off-by-one error with fragment element indices.

Diff Detail

Event Timeline

Orlando created this revision.Feb 8 2023, 2:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2023, 2:59 AM
Orlando requested review of this revision.Feb 8 2023, 2:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2023, 2:59 AM
StephenTozer accepted this revision.Feb 8 2023, 7:34 AM

Nit, otherwise LGTM!

llvm/test/DebugInfo/assignment-tracking/X86/lower-to-value.ll
53
This revision is now accepted and ready to land.Feb 8 2023, 7:34 AM
This revision was landed with ongoing or failed builds.Feb 10 2023, 5:55 AM
This revision was automatically updated to reflect the committed changes.