Do not apply calling conventions to MSVC entry points
authorElizabeth Andrews <elizabeth.andrews@intel.com>
Mon, 14 Sep 2020 21:33:01 +0000 (14:33 -0700)
committerElizabeth Andrews <elizabeth.andrews@intel.com>
Wed, 16 Sep 2020 16:39:37 +0000 (09:39 -0700)
commit4cff1b40dacf6a5489b09657d94ea4757b8cd3b0
tree0aa7a3f7f4c73acdaa1ac4e469f0a717d762aaff
parent66df98945e08906ce4a057245fda81f631cfd3ae
Do not apply calling conventions to MSVC entry points

Fix link error for MSVC entry points when calling conventions
are specified. MSVC entry points should have default calling
convention.

Differential Revision: https://reviews.llvm.org/D87701
clang/lib/Sema/SemaDecl.cpp
clang/test/CodeGenCXX/default_calling_conv.cpp