intel/ir: Add missing initialization of backend_reg::offset during construction.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 26 Mar 2020 22:01:13 +0000 (15:01 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 29 Apr 2020 06:00:29 +0000 (23:00 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_ir.h

index c2c4893b3f69c233b02d7804898cb428113431cf..a548eb393a0dfdb207854b7734c468772813a93c 100644 (file)
@@ -36,7 +36,7 @@
 struct backend_reg : private brw_reg
 {
    backend_reg() {}
-   backend_reg(const struct brw_reg &reg) : brw_reg(reg) {}
+   backend_reg(const struct brw_reg &reg) : brw_reg(reg), offset(0) {}
 
    const brw_reg &as_brw_reg() const
    {