diff options
author | Brian <brian@yutani.localnet.net> | 2007-03-28 12:48:27 -0600 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-03-28 12:48:27 -0600 |
commit | ee2f31e281969fb505a767630cd04b9e08db1b9a (patch) | |
tree | 0caffc71b957d26d4c570434b53a4681fcf06402 /src/mesa/shader/slang | |
parent | dad97b4688ea25caf15cae66194db6ddbb98e936 (diff) |
added missing returns after slang_info_log_error() calls
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index bd403b7c30..22bcfe67d4 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -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: |