Skip to content

Commit bcbe5a8

Browse files
Revert "Turn on swiftasync for i386."
1 parent 2fbeabf commit bcbe5a8

File tree

2 files changed

+2
-3
lines changed

2 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
@@ -344,11 +344,12 @@ class LLVM_LIBRARY_VISIBILITY X86TargetInfo : public TargetInfo {
344344
case CC_C:
345345
case CC_PreserveMost:
346346
case CC_Swift:
347-
case CC_SwiftAsync:
348347
case CC_X86Pascal:
349348
case CC_IntelOclBicc:
350349
case CC_OpenCLKernel:
351350
return CCCR_OK;
351+
case CC_SwiftAsync:
352+
return CCCR_Error;
352353
default:
353354
return CCCR_Warning;
354355
}

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
// RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -o - %s | FileCheck %s
44
// RUN: %clang_cc1 -triple armv7s-apple-ios9 -emit-llvm -o - %s | FileCheck %s
55
// RUN: %clang_cc1 -triple armv7k-apple-ios9 -emit-llvm -o - %s | FileCheck %s
6-
// RUN: %clang_cc1 -triple i386-apple-watchos2 -emit-llvm -o - %s | FileCheck %s
76

87
// RUN: %clang_cc1 -x c++ -triple x86_64-apple-darwin10 -target-cpu core2 -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=CPPONLY
98
// RUN: %clang_cc1 -x c++ -triple arm64-apple-ios9 -target-cpu cyclone -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=CPPONLY
109
// RUN: %clang_cc1 -x c++ -triple armv7-apple-darwin9 -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=CPPONLY
1110
// RUN: %clang_cc1 -x c++ -triple armv7s-apple-ios9 -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=CPPONLY
1211
// RUN: %clang_cc1 -x c++ -triple armv7k-apple-ios9 -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=CPPONLY
13-
// RUN: %clang_cc1 -x c++ -triple i386-apple-watchos2 -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=CPPONLY
1412

1513
// Test tail call behavior when a swiftasynccall function is called
1614
// from another swiftasynccall function.

0 commit comments

Comments
 (0)