Skip to content

Commit 9e4523a

Browse files
committed
[CS] Use ConstraintSystem::getType.
1 parent fff29b1 commit 9e4523a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSDiag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7333,7 +7333,7 @@ bool FailureDiagnosis::diagnoseClosureExpr(
73337333
if (!bodyExpr)
73347334
return true;
73357335

7336-
if (resultTypeProcessor(bodyExpr->getType(), expectedResultType))
7336+
if (resultTypeProcessor(CS.getType(bodyExpr), expectedResultType))
73377337
return true;
73387338
}
73397339

0 commit comments

Comments
 (0)