Skip to content

Commit 125b893

Browse files
author
Max Moiseev
committed
fixing undef tests
1 parent 5d6b47b commit 125b893

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/SIL/Parser/undef.sil

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ bb0:
184184
init_existential_metatype undef : $@thick C.Type, $@thick P.Type
185185
// CHECK: open_existential_metatype undef : $@thick P.Type to $@thick (@opened("01234567-89AB-CDEF-0123-000000000002") P).Type
186186
open_existential_metatype undef : $@thick P.Type to $@thick (@opened("01234567-89AB-CDEF-0123-000000000002") P).Type
187-
// CHECK: open_existential_box undef : $ErrorType to $*@opened("01234567-89AB-CDEF-0123-000000000003") ErrorType
188-
open_existential_box undef : $ErrorType to $*@opened("01234567-89AB-CDEF-0123-000000000003") ErrorType
189-
// CHECK: dealloc_existential_box undef : $ErrorType, $()
190-
dealloc_existential_box undef : $ErrorType, $()
187+
// CHECK: open_existential_box undef : $ErrorProtocol to $*@opened("01234567-89AB-CDEF-0123-000000000003") ErrorProtocol
188+
open_existential_box undef : $ErrorProtocol to $*@opened("01234567-89AB-CDEF-0123-000000000003") ErrorProtocol
189+
// CHECK: dealloc_existential_box undef : $ErrorProtocol, $()
190+
dealloc_existential_box undef : $ErrorProtocol, $()
191191

192192
// Blocks
193193

@@ -363,11 +363,11 @@ bb2:
363363

364364
sil @try_apply_test : $() -> () {
365365
bb0:
366-
// CHECK: try_apply undef(undef) : $@convention(thin) (()) -> @error ErrorType, normal bb1, error bb2
367-
try_apply undef(undef) : $@convention(thin) (()) -> @error ErrorType, normal bb1, error bb2
366+
// CHECK: try_apply undef(undef) : $@convention(thin) (()) -> @error ErrorProtocol, normal bb1, error bb2
367+
try_apply undef(undef) : $@convention(thin) (()) -> @error ErrorProtocol, normal bb1, error bb2
368368
bb1(%1 : $()):
369369
br bb3
370-
bb2(%2 : $ErrorType):
370+
bb2(%2 : $ErrorProtocol):
371371
br bb3
372372
bb3:
373373
return undef : $()

0 commit comments

Comments
 (0)