This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Adjust debug info offset for stack arguments in big-endian targets
Needs ReviewPublic

Authored by yuten on Apr 30 2021, 7:35 AM.

Details

Reviewers
echristo
Summary

Say the function has a 16-bit parameter that is passed via the stack as a 32-bit value.

In big-endian targets, without the adjustment, the offset will be +0 instead of +2, which is incorrect.

Diff Detail

Event Timeline

yuten created this revision.Apr 30 2021, 7:35 AM
yuten requested review of this revision.Apr 30 2021, 7:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 30 2021, 7:35 AM
mamai added a subscriber: mamai.Apr 30 2021, 7:56 AM