Fix for #31362 - ms_abi is implemented incorrectly for values >=16 bytes.
authorAlexander Ivchenko <alexander.ivchenko@intel.com>
Thu, 8 Feb 2018 11:15:21 +0000 (11:15 +0000)
committerAlexander Ivchenko <alexander.ivchenko@intel.com>
Thu, 8 Feb 2018 11:15:21 +0000 (11:15 +0000)
commit4b20b3c80c5561040f0c0e7358b88fe8f97cf3c6
treefb6b8c502f4b863bbc0f24358f3b8002cf20492c
parent1db3ca9ab1cc4b35fb1029575ea6bd6d663c7543
Fix for #31362 - ms_abi is implemented incorrectly for values >=16 bytes.

Summary:
This patch is a fix for following issue:
https://bugs.llvm.org/show_bug.cgi?id=31362 The problem was caused by front end
lowering C calling conventions without taking into account calling conventions
enforced by attribute. In this case win64cc was no correctly lowered on targets
other than Windows.

Reviewed By: rnk (Reid Kleckner)

Differential Revision: https://reviews.llvm.org/D43016

Author: belickim <mateusz.belicki@intel.com>
llvm-svn: 324594
clang/lib/CodeGen/TargetInfo.cpp
clang/test/CodeGen/ms_abi.c