Skip to content

Commit 73e4a09

Browse files
Merge pull request #2692 from varungandhi-apple/vg-apple/stable
Temporarily mark swiftasync unsupported for x86_64 Windows
2 parents ce01788 + d302e70 commit 73e4a09

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

clang/lib/Basic/Targets/X86.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,10 +788,11 @@ class LLVM_LIBRARY_VISIBILITY WindowsX86_64TargetInfo
788788
case CC_PreserveAll:
789789
case CC_X86_64SysV:
790790
case CC_Swift:
791-
case CC_SwiftAsync:
792791
case CC_X86RegCall:
793792
case CC_OpenCLKernel:
794793
return CCCR_OK;
794+
case CC_SwiftAsync:
795+
return CCCR_Error;
795796
default:
796797
return CCCR_Warning;
797798
}

clang/test/CodeGen/swift-call-conv.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clang_cc1 -triple aarch64-unknown-windows-msvc -emit-llvm %s -o - | FileCheck %s
2-
// RUN: %clang_cc1 -triple x86_64-unknown-windows-msvc -emit-llvm %s -o - | FileCheck %s
32

43
// REQUIRES: aarch64-registered-target,arm-registered-target,x86-registered-target
54

clang/test/Sema/attr-swiftcall.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify %s
2-
// RUN: %clang_cc1 -triple x86_64-unknown-windows -fsyntax-only -verify %s
32

43
#define SWIFTCALL __attribute__((swiftcall))
54
#define SWIFTASYNCCALL __attribute__((swiftasynccall))

0 commit comments

Comments
 (0)