Skip to content

Commit ff06f2f

Browse files
varungandhi-applecompnerd
authored andcommitted
Temporarily mark swiftasync unavailable for x86_64 Windows.
The new ABI needs stack adjustment, but on Windows, swifttailcc only works if there is no stack adjustment.
1 parent 6dd8e55 commit ff06f2f

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
@@ -801,10 +801,11 @@ class LLVM_LIBRARY_VISIBILITY WindowsX86_64TargetInfo
801801
case CC_PreserveAll:
802802
case CC_X86_64SysV:
803803
case CC_Swift:
804-
case CC_SwiftAsync:
805804
case CC_X86RegCall:
806805
case CC_OpenCLKernel:
807806
return CCCR_OK;
807+
case CC_SwiftAsync:
808+
return CCCR_Error;
808809
default:
809810
return CCCR_Warning;
810811
}

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)