[PGO] CallPromotion: Don't try to pass sret args to varargs functions
authorHans Wennborg <hans@chromium.org>
Mon, 8 Jun 2020 16:36:56 +0000 (18:36 +0200)
committerHans Wennborg <hans@chromium.org>
Mon, 8 Jun 2020 19:10:27 +0000 (21:10 +0200)
commitfc202c5fec07c8dd24c6cb2e33c3bbdb5d54db6e
tree5aaaf7a6591f38bf4c011f10f55ae0c002f102e7
parentc07339c6754e1faf4078d3c592c0ae28455503cd
[PGO] CallPromotion: Don't try to pass sret args to varargs functions

It's not allowed by the verifier.

Differential revision: https://reviews.llvm.org/D81409
llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
llvm/test/Transforms/PGOProfile/icp_vararg_sret.ll [new file with mode: 0644]