[Mangler] Mangle aliases to fastcall/vectorcall functions correctly
authorAmanieu d'Antras <amanieu@gmail.com>
Fri, 25 Feb 2022 22:06:47 +0000 (22:06 +0000)
committerAmanieu d'Antras <amanieu@gmail.com>
Fri, 25 Feb 2022 22:06:47 +0000 (22:06 +0000)
commit54b909de682bfa4e3389b680b0916ab18c99952a
tree6bdd6f6d44fc92c1dec8e624211626aef0708475
parent1e8c9e7ac18f6769087219d93b07f76f3574e20a
[Mangler] Mangle aliases to fastcall/vectorcall functions correctly

These aliases are produced by MergeFunctions and need to be mangled according to the calling convention of the function they are pointing to instead of defaulting to the C calling convention.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D120382
llvm/lib/IR/Mangler.cpp
llvm/test/CodeGen/X86/fastcall-correct-mangling.ll