final touch: assert instead of log crit to crash earlier

This commit is contained in:
psucien 2024-06-17 00:42:26 +02:00
parent abe2771c73
commit 5595da0a24
1 changed files with 1 additions and 3 deletions

View File

@ -823,9 +823,7 @@ IR::AbstractSyntaxList BuildASL(ObjectPool<IR::Inst>& inst_pool, ObjectPool<IR::
Statement& root{goto_pass.RootStatement()};
IR::AbstractSyntaxList syntax_list;
TranslatePass{inst_pool, block_pool, stmt_pool, root, syntax_list, cfg.inst_list, info};
if (info.translation_failed) {
LOG_CRITICAL(Render_Recompiler, "Shader translation has failed");
}
ASSERT_MSG(!info.translation_failed, "Shader translation has failed");
return syntax_list;
}