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)
commit5759fa798bcc4291f54e51f960dcfc49972d7f00
tree11884257b9a471aa3fdbe94f5f8b86d02de16ed9
parent562962f2131792368b41eb46a12bb0e0c3f4e8e6
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.

llvm-svn: 316528
clang/lib/AST/ASTContext.cpp
clang/test/CodeGenCXX/default_calling_conv.cpp