From bdad7f429a7df5dda2098042ecbc892e787da8ee Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Thu, 26 Mar 2020 15:01:13 -0700 Subject: intel/ir: Add missing initialization of backend_reg::offset during construction. Reviewed-by: Kenneth Graunke --- src/intel/compiler/brw_ir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/intel/compiler') diff --git a/src/intel/compiler/brw_ir.h b/src/intel/compiler/brw_ir.h index c2c4893b3f6..a548eb393a0 100644 --- a/src/intel/compiler/brw_ir.h +++ b/src/intel/compiler/brw_ir.h @@ -36,7 +36,7 @@ struct backend_reg : private brw_reg { backend_reg() {} - backend_reg(const struct brw_reg ®) : brw_reg(reg) {} + backend_reg(const struct brw_reg ®) : brw_reg(reg), offset(0) {} const brw_reg &as_brw_reg() const { -- cgit v1.2.3