Skip to content

Commit 04faa2a

Browse files
committed
[ConstraintSystem] Remove check for left-over free type variables since it's handle gracefully
1 parent b07139e commit 04faa2a

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

lib/Sema/CSStep.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -403,20 +403,6 @@ StepResult ComponentStep::take(bool prevFailed) {
403403
return finalize(/*isSuccess=*/false);
404404
#endif
405405
}
406-
407-
if (CS.hasFreeTypeVariables()) {
408-
#ifndef NDEBUG
409-
CS.print(llvm::errs());
410-
llvm::report_fatal_error("Free type variables left over?");
411-
#else
412-
if (CS.isDebugMode()) {
413-
getDebugLogger() << "(failed due to remaining free type variables)\n";
414-
CS.print(getDebugLogger(/*indent=*/false));
415-
}
416-
417-
return finalize(/*isSuccess=*/false);
418-
#endif
419-
}
420406
}
421407

422408
// If this solution is worse than the best solution we've seen so far,

0 commit comments

Comments
 (0)