Move the no-prototype calling conv check after decl merging
authorReid Kleckner <reid@kleckner.net>
Mon, 3 Nov 2014 21:56:03 +0000 (21:56 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 3 Nov 2014 21:56:03 +0000 (21:56 +0000)
commit899baf3625db90e3434e8a91335a74f4c49972a1
treedd7a3848d0f7f7750029a5f1fb15a191ecb93ce4
parent7e2b9882b147bf9c26faa7b04b56884ec444bd64
Move the no-prototype calling conv check after decl merging

Now we don't warn on this code:
  void __stdcall f(void);
  void __stdcall f();

My previous commit regressed this functionality because I didn't update
the relevant test case which used a definition.

llvm-svn: 221188
clang/lib/Sema/SemaDecl.cpp
clang/test/Sema/decl-microsoft-call-conv.c