blob: 787282e400950eedf2ab5a9e9c03dfa41d4f2e83 [file] [log] [blame]
// RUN: %target-swift-frontend -enable-sil-opaque-values -parse-stdlib -primary-file %s -emit-ir | %FileCheck %s
import Builtin
sil_stage canonical
// CHECK: define hidden swiftcc void @f010_irgen_identity(%swift.opaque* noalias nocapture sret, %swift.opaque* noalias nocapture, %swift.type* %T)
// CHECK: entry:
// 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
}