blob: 5af2ca69eb8510b9c60f3b7cdb16b8b1ebcdcde3 [file] [log] [blame]
// RUN: %target-swift-frontend -enable-sil-opaque-values -parse-stdlib -primary-file %s -emit-ir | %FileCheck --check-prefix=CHECK --check-prefix=CHECK-%target-cpu %s
import Builtin
sil_stage canonical
// CHECK: define hidden swiftcc void @f010_irgen_identity(%swift.opaque* noalias nocapture sret %0, %swift.opaque* noalias nocapture %1, %swift.type* %T)
// CHECK: entry:
// CHECK-NOT: call
// CHECK-arm64e: call i64 @llvm.ptrauth.blend.i64
// CHECK-NOT: call
// CHECK: %{{.*}} = call %swift.opaque* %initializeWithTake(%swift.opaque* noalias %0, %swift.opaque* noalias %1, %swift.type* %T)
// CHECK-NOT: call
// CHECK: ret void
sil hidden @f010_irgen_identity : $@convention(thin) <T> (@in T) -> @out T {
bb0(%0 : $T):
return %0 : $T
}