This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Fix tail call validity checking for varargs calls.
ClosedPublic

Authored by efriedma on Apr 30 2020, 1:29 PM.

Details

Summary

If a varargs function is calling a non-varargs function, or vice versa, make sure we use the correct "varargs" bit for each.

Fixes https://bugs.llvm.org/show_bug.cgi?id=45234

Diff Detail

Event Timeline

efriedma created this revision.Apr 30 2020, 1:29 PM
DavidSpickett added inline comments.
llvm/test/CodeGen/ARM/tail-call-results.ll
4

Can you add a comment here with the purpose of the test?

If I understand correctly it's checking that vararg->vararg, or normal->normal will tail call but a mix of the two won't.

efriedma updated this revision to Diff 261546.May 1 2020, 2:18 PM

Update test; hopefully the comments make sense.

This revision is now accepted and ready to land.May 4 2020, 1:42 AM
This revision was automatically updated to reflect the committed changes.