Fix fallthrough warnings
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-06-28 13:32:28 +02:00
parent df79489d4d
commit 0d63543ff4
3 changed files with 7 additions and 20 deletions

View File

@@ -56,6 +56,7 @@ namespace Porygon::Binder {
case ParsedStatementKind::Bad:
return new BoundBadStatement();
}
throw "unreachable";
}
BoundStatement *Binder::BindBlockStatement(const ParsedStatement *statement) {
@@ -355,6 +356,7 @@ namespace Porygon::Binder {
case ParsedExpressionKind::Bad:
return new BoundBadExpression(expression->GetStartPosition(), expression->GetLength());
}
throw;
}
BoundExpression *Binder::BindVariableExpression(const VariableExpression *expression) {