Treat a million loops as a fatal error because running several passes of that can take too long.
1 files changed, 1 insertions(+), 1 deletions(-) M jasm/assemble/assembler_impl/syntax_impl.cpp
M jasm/assemble/assembler_impl/syntax_impl.cpp +1 -1
@@ 1379,7 1379,7 @@ const SyntaxToken *Assembler::parse_for_ const ExpressionToken *expr = static_cast<const ExpressionToken *>(t); std::stringstream ss; ss << "For loop ran a million loops. There doesn't seem to be an end to this."; - report_error(expr->source_location, AssemblyErrorCodes::ForLoopSanityCheckTriggered, ss.str()); + report_fatal_error(expr->source_location, AssemblyErrorCodes::ForLoopSanityCheckTriggered, ss.str()); break; }