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
66import Foundation
77import Newtype
88
9- // REQUIRES: rdar48056043
109// REQUIRES: objc_interop
1110
1211// Conformance descriptor for synthesized ClosedEnums : _ObjectiveCBridgeable.
@@ -144,13 +143,12 @@ class ObjCTest {
144143 // CHECK: {{^}$}}
145144
146145 // 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]]
154152 // OPT: {{^}$}}
155153 @objc func optionalPassThrough( _ ed: ErrorDomain ? ) -> ErrorDomain ? {
156154 return ed
You can’t perform that action at this time.
0 commit comments