Skip to content

Commit 5e32b13

Browse files
committed
Remove CleanupIllFormedExpressionRAII from preCheckExpression.
It erases type variables, but none can exist at this point.
1 parent 0bba7d9 commit 5e32b13

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/Sema/TypeCheckConstraints.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,9 +1609,6 @@ bool TypeChecker::preCheckExpression(Expr *&expr, DeclContext *dc) {
16091609
expr = result;
16101610
return false;
16111611
}
1612-
1613-
// Pre-check failed. Clean up and return.
1614-
CleanupIllFormedExpressionRAII::doIt(expr, Context);
16151612
return true;
16161613
}
16171614

0 commit comments

Comments
 (0)