This is an archive of the discontinued LLVM Phabricator instance.

[GlobalOpt] Don't remove inalloca from varargs functions
ClosedPublic

Authored by aeubanks on Nov 1 2022, 11:39 AM.

Details

Summary

Varargs and inalloca have a weird interaction where varargs are actually
passed via the inalloca alloca. Removing inalloca breaks the varargs
because they're still not passed as separate arguments.

Fixes #58718

Diff Detail

Event Timeline

aeubanks created this revision.Nov 1 2022, 11:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 1 2022, 11:39 AM
aeubanks requested review of this revision.Nov 1 2022, 11:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 1 2022, 11:39 AM
rnk accepted this revision.Nov 1 2022, 11:51 AM

lgtm

This revision is now accepted and ready to land.Nov 1 2022, 11:51 AM
This revision was landed with ongoing or failed builds.Nov 1 2022, 1:04 PM
This revision was automatically updated to reflect the committed changes.