Skip to content

Commit 4383062

Browse files
authored
Merge pull request #11339 from xedin/fix-skip-solutions-with-cache
2 parents ae6c61e + d18567a commit 4383062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckConstraints.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,7 @@ Type TypeChecker::typeCheckExpression(Expr *&expr, DeclContext *dc,
17841784

17851785
if (options.contains(TypeCheckExprFlags::SkipApplyingSolution)) {
17861786
cleanup.disable();
1787-
return cs.getType(expr);
1787+
return solution.simplifyType(cs.getType(expr));
17881788
}
17891789

17901790
// Apply the solution to the expression.

0 commit comments

Comments
 (0)