[SIL] Add source formal type to checked_cast_br.

It is necessary for opaque values where for casts that will newly start
out as checked_cast_brs and be lowered to checked_cast_addr_brs, since
the latter has the source formal type, IRGen relies on being able to
access it, and there's no way in general to obtain the source formal
type from the source lowered type.
This commit is contained in:
Nate Chandler
2023-07-19 16:53:18 -07:00
parent b3cd553dba
commit e5d87f75a8
101 changed files with 431 additions and 410 deletions

View File

@@ -956,7 +956,7 @@ enum OperandRelation {
///
/// bb1:
/// %3 = unchecked_enum_data %0 : $Optional<X>, #Optional.Some!enumelt
/// checked_cast_br [exact] %3 : $X to $X, bb4, bb5 // id: %4
/// checked_cast_br [exact] X in %3 : $X to $X, bb4, bb5 // id: %4
///
/// bb4(%10 : $X): // Preds: bb1
/// strong_release %10 : $X