mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 10:10:23 +01:00
; and {} statements were broken
This commit is contained in:
parent
ec89aba7c6
commit
ee931f8d4d
1 changed files with 6 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue