forked from OSchip/llvm-project
[CodeGen][ObjC] Emit objc_unsafeClaimAutoreleasedReturnValue for
fragile runtime too. Follow-up to r258962. rdar://problem/29269006 llvm-svn: 289615
This commit is contained in:
parent
ba17775c84
commit
74f0789552
|
@ -312,6 +312,7 @@ public:
|
|||
bool hasARCUnsafeClaimAutoreleasedReturnValue() const {
|
||||
switch (getKind()) {
|
||||
case MacOSX:
|
||||
case FragileMacOSX:
|
||||
return getVersion() >= VersionTuple(10, 11);
|
||||
case iOS:
|
||||
return getVersion() >= VersionTuple(9);
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
// Make sure it works on x86-64.
|
||||
// RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-runtime=macosx-10.11 -fobjc-arc -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-UNOPTIMIZED
|
||||
|
||||
// Make sure it works on x86-32.
|
||||
// RUN: %clang_cc1 -triple i386-apple-darwin11 -fobjc-runtime=macosx-fragile-10.11 -fobjc-arc -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-UNOPTIMIZED -check-prefix=CHECK-MARKED
|
||||
|
||||
// Make sure it works on ARM.
|
||||
// RUN: %clang_cc1 -triple arm64-apple-ios9 -fobjc-runtime=ios-9.0 -fobjc-arc -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-UNOPTIMIZED -check-prefix=CHECK-MARKED
|
||||
// RUN: %clang_cc1 -triple arm64-apple-ios9 -fobjc-runtime=ios-9.0 -fobjc-arc -O -disable-llvm-optzns -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-OPTIMIZED
|
||||
|
|
Loading…
Reference in New Issue