projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec89aba
)
; and {} statements were broken
author
Brian
<brian@yutani.localnet.net>
Thu, 8 Mar 2007 21:48:34 +0000
(14:48 -0700)
committer
Brian
<brian@yutani.localnet.net>
Thu, 8 Mar 2007 21:48:34 +0000
(14:48 -0700)
src/mesa/shader/slang/slang_codegen.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_codegen.c
b/src/mesa/shader/slang/slang_codegen.c
index de78c2b8c7712b732ce58c4882bf737608cfa815..5da98550dca16e74d22c98d1ae77b02e087f0faf 100644
(file)
--- a/
src/mesa/shader/slang/slang_codegen.c
+++ b/
src/mesa/shader/slang/slang_codegen.c
@@
-2260,7
+2260,10
@@
_slang_gen_operation(slang_assemble_ctx * A, slang_operation *oper)
#endif
return tree;
}
- break;
+ else {
+ return new_node0(IR_NOP);
+ }
+
case SLANG_OPER_EXPRESSION:
return _slang_gen_operation(A, &oper->children[0]);
@@
-2485,9
+2488,9
@@
_slang_gen_operation(slang_assemble_ctx * A, slang_operation *oper)
}
case SLANG_OPER_NONE:
- return NULL;
case SLANG_OPER_VOID:
- return NULL;
+ /* returning NULL here would generate an error */
+ return new_node0(IR_NOP);
default:
printf("Unhandled node type %d\n", oper->type);