Skip to content

Commit b0fe088

Browse files
Merge pull request #2768 from varungandhi-apple/vg-apple/stable
Turn on swiftasync for i386.
2 parents df76373 + 8c462e7 commit b0fe088

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
@@ -344,12 +344,11 @@ class LLVM_LIBRARY_VISIBILITY X86TargetInfo : public TargetInfo {
344344
case CC_C:
345345
case CC_PreserveMost:
346346
case CC_Swift:
347+
case CC_SwiftAsync:
347348
case CC_X86Pascal:
348349
case CC_IntelOclBicc:
349350
case CC_OpenCLKernel:
350351
return CCCR_OK;
351-
case CC_SwiftAsync:
352-
return CCCR_Error;
353352
default:
354353
return CCCR_Warning;
355354
}

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)