broadcom/compiler: initialize register
This fixes issue detected by static analyzer: passed-by-value struct argument contains uninitialized data (e.g., field: 'file'). Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com> Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34050>
This commit is contained in:
committed by
Marge Bot
parent
0e50b09d4a
commit
f5e36e382f
@@ -1167,7 +1167,7 @@ ntq_emit_comparison(struct v3d_compile *c,
|
||||
enum v3d_qpu_cond *out_cond)
|
||||
{
|
||||
struct qreg src0 = ntq_get_alu_src(c, compare_instr, 0);
|
||||
struct qreg src1;
|
||||
struct qreg src1 = { 0 };
|
||||
if (nir_op_infos[compare_instr->op].num_inputs > 1)
|
||||
src1 = ntq_get_alu_src(c, compare_instr, 1);
|
||||
bool cond_invert = false;
|
||||
|
||||
Reference in New Issue
Block a user