mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
minor tweaks
This commit is contained in:
parent
2bdac09d16
commit
bf020d8d7f
1 changed files with 2 additions and 2 deletions
|
|
@ -1369,7 +1369,7 @@ _slang_gen_while(slang_assemble_ctx * A, const slang_operation *oper)
|
||||||
loop->Children[0] = new_seq(breakIf, body);
|
loop->Children[0] = new_seq(breakIf, body);
|
||||||
|
|
||||||
/* Do infinite loop detection */
|
/* Do infinite loop detection */
|
||||||
if (loop->BranchNode == 0 && isConst && constTrue) {
|
if (!loop->BranchNode && isConst && constTrue) {
|
||||||
/* infinite loop detected */
|
/* infinite loop detected */
|
||||||
A->CurLoop = prevLoop; /* clean-up */
|
A->CurLoop = prevLoop; /* clean-up */
|
||||||
slang_info_log_error(A->log, "Infinite loop detected!");
|
slang_info_log_error(A->log, "Infinite loop detected!");
|
||||||
|
|
@ -1485,7 +1485,7 @@ static slang_ir_node *
|
||||||
_slang_gen_if(slang_assemble_ctx * A, const slang_operation *oper)
|
_slang_gen_if(slang_assemble_ctx * A, const slang_operation *oper)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* eval expr (child[0]), updating condcodes
|
* eval expr (child[0])
|
||||||
* IF expr THEN
|
* IF expr THEN
|
||||||
* if-body code
|
* if-body code
|
||||||
* ELSE
|
* ELSE
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue