mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 16:40:30 +01: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);
|
||||
|
||||
/* Do infinite loop detection */
|
||||
if (loop->BranchNode == 0 && isConst && constTrue) {
|
||||
if (!loop->BranchNode && isConst && constTrue) {
|
||||
/* infinite loop detected */
|
||||
A->CurLoop = prevLoop; /* clean-up */
|
||||
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)
|
||||
{
|
||||
/*
|
||||
* eval expr (child[0]), updating condcodes
|
||||
* eval expr (child[0])
|
||||
* IF expr THEN
|
||||
* if-body code
|
||||
* ELSE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue