@@ -7466,8 +7466,8 @@ SourceRange CheckedCastBaseFailure::getCastRange() const {
74667466 llvm_unreachable (" There is no other kind of checked cast!" );
74677467}
74687468
7469- std::tuple<Type, Type, unsigned >
7470- CoercibleOptionalCheckedCastFailure::unwrapedTypes () const {
7469+ std::tuple<Type, Type, int >
7470+ CoercibleOptionalCheckedCastFailure::unwrappedTypes () const {
74717471 SmallVector<Type, 4 > fromOptionals;
74727472 SmallVector<Type, 4 > toOptionals;
74737473 Type unwrappedFromType =
@@ -7483,8 +7483,7 @@ bool CoercibleOptionalCheckedCastFailure::diagnoseIfExpr() const {
74837483 return false ;
74847484
74857485 Type unwrappedFrom, unwrappedTo;
7486- unsigned extraFromOptionals;
7487- std::tie (unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrapedTypes ();
7486+ std::tie (unwrappedFrom, unwrappedTo, std::ignore) = unwrappedTypes ();
74887487
74897488 SourceRange diagFromRange = getFromRange ();
74907489 SourceRange diagToRange = getToRange ();
@@ -7515,8 +7514,8 @@ bool CoercibleOptionalCheckedCastFailure::diagnoseForcedCastExpr() const {
75157514 auto fromType = getFromType ();
75167515 auto toType = getToType ();
75177516 Type unwrappedFrom, unwrappedTo;
7518- unsigned extraFromOptionals;
7519- std::tie (unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrapedTypes ();
7517+ int extraFromOptionals;
7518+ std::tie (unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrappedTypes ();
75207519
75217520 SourceRange diagFromRange = getFromRange ();
75227521 SourceRange diagToRange = getToRange ();
@@ -7558,8 +7557,7 @@ bool CoercibleOptionalCheckedCastFailure::diagnoseConditionalCastExpr() const {
75587557 auto fromType = getFromType ();
75597558 auto toType = getToType ();
75607559 Type unwrappedFrom, unwrappedTo;
7561- unsigned extraFromOptionals;
7562- std::tie (unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrapedTypes ();
7560+ std::tie (unwrappedFrom, unwrappedTo, std::ignore) = unwrappedTypes ();
75637561
75647562 SourceRange diagFromRange = getFromRange ();
75657563 SourceRange diagToRange = getToRange ();
0 commit comments