Revert "SIL: Drop the upcast_existential* instructions."

This reverts commit r22345.

Swift SVN r22353
This commit is contained in:
Joe Groff
2014-09-29 13:46:41 +00:00
parent f33d3a7abd
commit 152aa9e244
23 changed files with 265 additions and 6 deletions

View File

@@ -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>