Skip to content

Commit 77865db

Browse files
authored
Merge pull request #3265 from etcwilde/ewilde/rebranch/fix-i386watchos-concurrency
Rebranch: Turn on swiftasync for i386.
2 parents dee18dd + ed1a8e1 commit 77865db

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
@@ -353,12 +353,11 @@ class LLVM_LIBRARY_VISIBILITY X86TargetInfo : public TargetInfo {
353353
case CC_C:
354354
case CC_PreserveMost:
355355
case CC_Swift:
356+
case CC_SwiftAsync:
356357
case CC_X86Pascal:
357358
case CC_IntelOclBicc:
358359
case CC_OpenCLKernel:
359360
return CCCR_OK;
360-
case CC_SwiftAsync:
361-
return CCCR_Error;
362361
default:
363362
return CCCR_Warning;
364363
}

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)