mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "SIL: Drop the upcast_existential* instructions."
This reverts commit r22345. Swift SVN r22353
This commit is contained in:
@@ -278,6 +278,8 @@ bb0(%0 : $*Runcible, %1 : $*protocol<Bendable, Runcible>):
|
||||
%4 = alloc_stack $protocol<Bendable, Runcible>
|
||||
// CHECK: copy_addr {{.*}} to [initialization] {{.*}} : $*protocol<Bendable, Runcible>
|
||||
%5 = copy_addr %2#1 to [initialization] %4#1 : $*protocol<Bendable, Runcible>
|
||||
// CHECK: upcast_existential [take] {{.*}} : $*protocol<Bendable, Runcible> to {{.*}} : $*Runcible
|
||||
%6 = upcast_existential [take] %4#1 : $*protocol<Bendable, Runcible> to %0 : $*Runcible
|
||||
%7 = tuple ()
|
||||
// CHECK: destroy_addr
|
||||
%8 = destroy_addr %4#1 : $*protocol<Bendable, Runcible>
|
||||
|
||||
Reference in New Issue
Block a user