mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
added missing returns after slang_info_log_error() calls
This commit is contained in:
parent
dad97b4688
commit
ee2f31e281
1 changed files with 2 additions and 0 deletions
|
|
@ -2450,11 +2450,13 @@ _slang_gen_operation(slang_assemble_ctx * A, slang_operation *oper)
|
|||
case SLANG_OPER_BREAK:
|
||||
if (!A->CurLoop) {
|
||||
slang_info_log_error(A->log, "'break' not in loop");
|
||||
return NULL;
|
||||
}
|
||||
return new_break(A->CurLoop);
|
||||
case SLANG_OPER_CONTINUE:
|
||||
if (!A->CurLoop) {
|
||||
slang_info_log_error(A->log, "'continue' not in loop");
|
||||
return NULL;
|
||||
}
|
||||
return _slang_gen_continue(A, oper);
|
||||
case SLANG_OPER_DISCARD:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue