Removed unnecessary assertion.

This commit is contained in:
Patrick Lühne 2017-03-28 17:33:32 +02:00
parent 29233a7430
commit c63d74092e
No known key found for this signature in database
GPG Key ID: 05F3611E97A70ABF
1 changed files with 0 additions and 1 deletions

View File

@ -216,7 +216,6 @@ inline output::ColorStream &operator<<(output::ColorStream &stream, const String
inline output::ColorStream &operator<<(output::ColorStream &stream, const Variable &variable)
{
assert(!variable.name.empty());
assert(variable.name[0] >= 65 && variable.name[0] <= 90);
if (variable.type == ast::Variable::Type::Reserved || !isReservedVariableName(variable.name.c_str()))
return (stream << output::Variable(variable.name.c_str()));