This is an archive of the discontinued LLVM Phabricator instance.

[X86] Teach X86FastISel::X86SelectRet to use EAX for the sret pointer in GNUX32
ClosedPublic

Authored by craig.topper on Sep 11 2018, 10:33 AM.

Details

Summary

GNUX32 uses 32-bit pointers despite is64BitMode being true. So we should use EAX to return the value.

Fixes another failure from PR38865

Diff Detail

Event Timeline

craig.topper created this revision.Sep 11 2018, 10:33 AM
rnk accepted this revision.Sep 11 2018, 10:40 AM

lgtm

This revision is now accepted and ready to land.Sep 11 2018, 10:40 AM
This revision was automatically updated to reflect the committed changes.