[Constraint solver] Check switch exhaustiveness in function builders

This commit is contained in:
Doug Gregor
2020-03-03 13:44:36 -08:00
parent ea8d143f64
commit 7ee33a920d
2 changed files with 17 additions and 0 deletions

View File

@@ -1123,6 +1123,8 @@ public:
++caseIndex;
}
TypeChecker::checkSwitchExhaustiveness(switchStmt, dc, /*limited=*/false);
return switchStmt;
}