This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Fix off by one in finding explicit byval alignment
ClosedPublic

Authored by arsenm on Mar 6 2021, 8:49 AM.

Details

Summary

For attribute sets, the return index is at 0, and arguments start at

  1. getParamAlignment adds the offset of 1, so we need to convert from

attribute index back to IR index.

Diff Detail

Event Timeline

arsenm created this revision.Mar 6 2021, 8:49 AM
arsenm requested review of this revision.Mar 6 2021, 8:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2021, 8:49 AM
Herald added a subscriber: wdng. · View Herald Transcript
foad accepted this revision.Mar 8 2021, 6:47 AM
foad added a subscriber: foad.

Looks obvious.

This revision is now accepted and ready to land.Mar 8 2021, 6:47 AM