Skip to content

Commit ba96db6

Browse files
committed
Conflict resolution.
1 parent 36cf24f commit ba96db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSDiagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ bool MissingOptionalUnwrapFailure::diagnose() {
376376

377377
auto *tryExpr = dyn_cast<OptionalTryExpr>(unwrapped);
378378
if (!tryExpr)
379-
return diagnoseUnwrap(getTypeChecker(), getDC(), unwrapped, type);
379+
return diagnoseUnwrap(getConstraintSystem(), unwrapped, type);
380380

381381
emitDiagnostic(tryExpr->getTryLoc(), diag::missing_unwrap_optional_try, type)
382382
.fixItReplace({tryExpr->getTryLoc(), tryExpr->getQuestionLoc()}, "try!");

0 commit comments

Comments
 (0)