================
@@ -172,8 +200,14 @@ class LLVM_LIBRARY_VISIBILITY BaseSPIRTargetInfo : public
TargetInfo {
: CCCR_Warning;
}
- CallingConv getDefaultCallingConv() const override {
- return CC_SpirFunction;
+ CallingConv getDefaultCallingConv() const override { return CC_C; }
----------------
tahonermann wrote:
Since the default calling convention returned by
`TargetInfo::getDefaultCallingConv()` is `CC_C`, this function can be removed;
that is what every other target (except X86 for some reason) does.
https://github.com/llvm/llvm-project/pull/210882
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits