summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/calling-conv-ignored.c
Commit message (Collapse)AuthorAgeFilesLines
* [MS] Treat ignored explicit calling conventions as an explicit __cdeclReid Kleckner2019-07-091-0/+45
The CCCR_Ignore action is only used for Microsoft calling conventions, mainly because MSVC does not warn when a calling convention would be ignored by the current target. This behavior is actually somewhat important, since windows.h uses WINAPI (which expands to __stdcall) widely. This distinction didn't matter much before the introduction of __vectorcall to x64 and the ability to make that the default calling convention with /Gv. Now, we can't just ignore __stdcall for x64, we have to treat it as an explicit __cdecl annotation. Fixes PR42531 llvm-svn: 365579
OpenPOWER on IntegriCloud