Avatar
swiftNightly BOT 10/10/2018 10:15 PM
exit status: 134 with stderr:SIL verification failed: function_ref inside fragile function cannot reference a private or hidden symbol: (SingleFunction && RefF->isExternalDeclaration()) || RefF->hasValidLinkageForFragileRef() Verifying instruction: -> // function_ref Foo.bar.setter %16 = function_ref @$s4main3FooV3barSivs : $@convention(method) (Int, @inout Foo) -> () // user: %17 %17 = apply %16(%15, %7) : $@convention(method) (Int, @inout Foo) -> () In function: // Foo.f() sil [serialized] @$s4main3FooV1fSiyF : $@convention(method) (@inout Foo) -> Int { // %0 // users: %20, %7, %1 bb0(%0 : @trivial $*Foo): debug_value_addr %0 : $*Foo, var, name "self", argno 1 // id: %1 %2 = metatype $@thin Int.Type // user: %14 %3 = metatype $@thin Int.Type // user: %6 %4 = integer_literal $Builtin.Int2048, 1 // user: %6 // function_ref Int.init(_builtinIntegerLiteral:) %5 = function_ref @$sSi22_builtinIntegerLiteralSiBi2048__tcfC : $@convention(method) (Builtin.Int2048, @thin Int.Type) -> Int // user: %6 %6 = apply %5(%4, %3) : $@convention(method) (Builtin.Int2048, @thin Int.Type) -> Int // user: %14 %7 = begin_access [modify] [unknown] %0 : $*Foo // users: %18, %17, %9 %8 = alloc_stack $Int // users: %19, %15, %14, %12 %9 = load [trivial] %7 : $*Foo // user: %11 // function_ref Foo.bar.getter %10 = function_ref @$s4main3FooV3barSivg : $@convention(method) (Foo) -> Int // user: %11 %11 = apply %10(%9) : $@convention(method) (Foo) -> Int // user: %12 store %11 to [trivial] %8 : $*Int // id: %12 // function_ref static Int.+= infix(_:_:) %13 = function_ref @$sSi2peoiyySiz_SitFZ : $@convention(method) (@inout Int, Int, @thin Int.Type) -> () // user: %14 %14 = apply %13(%8, %6, %2) : $@convention(method) (@inout Int, Int, @thin Int.Type) -> () %15 = load [trivial] %8 : $*Int