the canonical calling conventions instead of comparing the raw calling
conventions directly. Fixes PR6361.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96895
91177308-0d34-0410-b5e6-
96231b3b80d8
}
CallingConv CCOld = Fn->getCallConv();
- if (CC == CCOld) return false;
+ if (S.Context.getCanonicalCallConv(CC) ==
+ S.Context.getCanonicalCallConv(CCOld)) return false;
if (CCOld != CC_Default) {
// Should we diagnose reapplications of the same convention?
typedef void (__attribute__((fastcall)) *Handler) (float *);
Handler H = foo;
+// PR6361
+void ctest3();
+void __attribute__((cdecl)) ctest3() {}
+