File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import CoreFoundation
6
6
import Foundation
7
7
import Newtype
8
8
9
- // REQUIRES: rdar48056043
10
9
// REQUIRES: objc_interop
11
10
12
11
// Conformance descriptor for synthesized ClosedEnums : _ObjectiveCBridgeable.
@@ -144,13 +143,12 @@ class ObjCTest {
144
143
// CHECK: {{^}$}}
145
144
146
145
// OPT-LABEL: define hidden %0* @"$s7newtype8ObjCTestC19optionalPassThroughySo14SNTErrorDomainaSgAGFTo"
147
- // OPT: [[CAST_VALUE:%.*]] = bitcast %0* %2 to %objc_object*
148
- // OPT: [[RECAST_VALUE:%.*]] = bitcast %objc_object* [[CAST_VALUE]] to i8*
149
- // OPT: [[RESULT:%.*]] = {{(tail )?}}call i8* @llvm.objc.retainAutoreleaseReturnValue(i8* [[RECAST_VALUE]])
150
- // OPT: [[RESULT_CAST:%.*]] = bitcast i8* [[RESULT]] to %0*
151
- // OPT: [[RESULT_RECAST:%.*]] = bitcast %0* [[RESULT_CAST]] to i8*
152
- // OPT: [[RESULT_RERECAST:%.*]] = bitcast i8* [[RESULT_RECAST]] to %0*
153
- // OPT: ret %0* [[RESULT_RERECAST]]
146
+ // OPT: [[ARG_CASTED:%.*]] = bitcast %0* %2 to %objc_object*
147
+ // OPT: [[ARG_RECASTED:%.*]] = bitcast %objc_object* [[ARG_CASTED]] to i8*
148
+ // OPT: [[ARG_CASTED2:%.*]] = bitcast %0* %2 to i8*
149
+ // OPT: tail call i8* @llvm.objc.retainAutoreleaseReturnValue(i8* [[ARG_RECASTED]])
150
+ // OPT: [[CAST_FOR_RETURN:%.*]] = bitcast i8* [[ARG_CASTED2]] to %0*
151
+ // OPT: ret %0* [[CAST_FOR_RETURN]]
154
152
// OPT: {{^}$}}
155
153
@objc func optionalPassThrough( _ ed: ErrorDomain ? ) -> ErrorDomain ? {
156
154
return ed
You can’t perform that action at this time.
0 commit comments