mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 07:50:20 +01:00
don't ignore return value of _slang_codegen_global_variable()
This commit is contained in:
parent
eab6e16522
commit
749e093e33
1 changed files with 2 additions and 1 deletions
|
|
@ -1618,7 +1618,8 @@ parse_init_declarator(slang_parse_ctx * C, slang_output_ctx * O,
|
|||
A.program = O->program;
|
||||
A.vartable = O->vartable;
|
||||
A.curFuncEndLabel = NULL;
|
||||
_slang_codegen_global_variable(&A, var, C->type);
|
||||
if (!_slang_codegen_global_variable(&A, var, C->type))
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* allocate global address space for a variable with a known size */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue