Skip to content

Commit 6cccc22

Browse files
authored
Merge pull request #3599 from bnbarham/rebranch-enable-swiftasync
[rebranch] Turn on swiftasync for i386
2 parents 5d99b64 + a58a7a9 commit 6cccc22

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clang/lib/Basic/Targets/X86.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,12 +355,11 @@ class LLVM_LIBRARY_VISIBILITY X86TargetInfo : public TargetInfo {
355355
case CC_C:
356356
case CC_PreserveMost:
357357
case CC_Swift:
358+
case CC_SwiftAsync:
358359
case CC_X86Pascal:
359360
case CC_IntelOclBicc:
360361
case CC_OpenCLKernel:
361362
return CCCR_OK;
362-
case CC_SwiftAsync:
363-
return CCCR_Error;
364363
default:
365364
return CCCR_Warning;
366365
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
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
67

78
// 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
89
// RUN: %clang_cc1 -x c++ -triple arm64-apple-ios9 -target-cpu cyclone -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=CPPONLY
910
// RUN: %clang_cc1 -x c++ -triple armv7-apple-darwin9 -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=CPPONLY
1011
// RUN: %clang_cc1 -x c++ -triple armv7s-apple-ios9 -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=CPPONLY
1112
// 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
1214

1315
// Test tail call behavior when a swiftasynccall function is called
1416
// from another swiftasynccall function.

0 commit comments

Comments
 (0)