aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/compiler
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2020-03-26 15:01:13 -0700
committerFrancisco Jerez <[email protected]>2020-04-28 23:00:29 -0700
commitbdad7f429a7df5dda2098042ecbc892e787da8ee (patch)
tree23f841af3743d7800c14a8e2df13741b68c2624f /src/intel/compiler
parente549e4f6c0c16bddec3dc4d33cc63df4529206f3 (diff)
intel/ir: Add missing initialization of backend_reg::offset during construction.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r--src/intel/compiler/brw_ir.h2
1 files changed, 1 insertions, 1 deletions
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 &reg) : brw_reg(reg) {}
+ backend_reg(const struct brw_reg &reg) : brw_reg(reg), offset(0) {}
const brw_reg &as_brw_reg() const
{