vkd3d-shader/dxil: Check for src param allocation failure in sm6_parser_emit_cast().

This commit is contained in:
Conor McCarthy 2024-02-14 00:13:17 +10:00 committed by Alexandre Julliard
parent 76455580e2
commit cddb696499
Notes: Alexandre Julliard 2024-02-14 23:27:12 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/647

View File

@ -4766,7 +4766,8 @@ static void sm6_parser_emit_cast(struct sm6_parser *sm6, const struct dxil_recor
return;
}
src_param = instruction_src_params_alloc(ins, 1, sm6);
if (!(src_param = instruction_src_params_alloc(ins, 1, sm6)))
return;
src_param_init_from_value(src_param, value);
instruction_dst_param_init_ssa_scalar(ins, sm6);