mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
fix failure caused by undeclared variable (bug 11783)
This commit is contained in:
parent
aa5b748c10
commit
e262d0182f
1 changed files with 2 additions and 1 deletions
|
|
@ -2056,7 +2056,8 @@ _slang_gen_declaration(slang_assemble_ctx *A, slang_operation *oper)
|
|||
}
|
||||
/* XXX make copy of this initializer? */
|
||||
rhs = _slang_gen_operation(A, &oper->children[0]);
|
||||
assert(rhs);
|
||||
if (!rhs)
|
||||
return NULL; /* must have found an error */
|
||||
init = new_node2(IR_MOVE, var, rhs);
|
||||
/*assert(rhs->Opcode != IR_SEQ);*/
|
||||
n = new_seq(varDecl, init);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue