Delay check for prototype on __fastcall functions until after MergeFunctionDecl.
authorNico Weber <nicolasweber@gmx.de>
Thu, 31 Jul 2014 17:19:18 +0000 (17:19 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 31 Jul 2014 17:19:18 +0000 (17:19 +0000)
commitbe39a87e1126c229ed69985881d8fb8fc53ce4ff
tree50992ba6b12c1647df925bdff22bf2c24a34776d
parent8ed8dbd96a8de3da0213f7863de7ba3e588277f9
Delay check for prototype on __fastcall functions until after MergeFunctionDecl.

In C, it is only known after merging decls if a function with 0 arguments has
a prototype.  Fixes PR20386, see that for more notes.

llvm-svn: 214408
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaType.cpp
clang/test/Sema/decl-microsoft-call-conv.c [new file with mode: 0644]