]> granicus.if.org Git - clang/commit
Correct behavior of fastcall when default CC is set.
authorErich Keane <erich.keane@intel.com>
Tue, 24 Oct 2017 23:12:01 +0000 (23:12 +0000)
committerErich Keane <erich.keane@intel.com>
Tue, 24 Oct 2017 23:12:01 +0000 (23:12 +0000)
commit5c484035ac41e9af5907ec574faa6e8c43cc00a2
tree7e201d9454122b110001db7aa6a44c45bb41af4d
parent15627d62634ea98431990fff026a04629f9e378e
Correct behavior of fastcall when default CC is set.

Fastcall doesn't support variadic function calls, so
setting the default calling convention to Fastcall would
result in incorrect code being emitted for these conditions.

This patch adds a 'variadic' test to the default calling conv
test, as well as fixes the behavior of fastcall.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316528 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
test/CodeGenCXX/default_calling_conv.cpp