Skip to content

Commit 3fda27d

Browse files
committed
Revert calling convention fix
1 parent 6305ac5 commit 3fda27d

File tree

1 file changed

+1
-12
lines changed
  • clang/lib/Basic/Targets

1 file changed

+1
-12
lines changed

clang/lib/Basic/Targets/X86.h

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -396,20 +396,9 @@ class LLVM_LIBRARY_VISIBILITY X86TargetInfo : public TargetInfo {
396396
CallingConvCheckResult checkCallingConvention(CallingConv CC) const override {
397397
// Most of the non-ARM calling conventions are i386 conventions.
398398
switch (CC) {
399-
case CC_X86ThisCall:
400-
case CC_X86FastCall:
401-
case CC_X86StdCall:
402-
case CC_X86VectorCall:
403-
case CC_X86RegCall:
404399
case CC_C:
405-
case CC_PreserveMost:
406-
case CC_Swift:
407-
case CC_X86Pascal:
408-
case CC_IntelOclBicc:
409-
case CC_OpenCLKernel:
400+
case CC_Win64:
410401
return CCCR_OK;
411-
case CC_SwiftAsync:
412-
return CCCR_Error;
413402
default:
414403
return CCCR_Warning;
415404
}

0 commit comments

Comments
 (0)