From 231459ad26a2e56ba93dfc125dd4ed922290f375 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 14 Jan 2022 18:20:41 -0800 Subject: [PATCH] glsl: Remove unused condition parameter from ir_assignment constructor Reviewed-by: Matt Turner Part-of: --- src/compiler/glsl/ir.cpp | 5 ++--- src/compiler/glsl/ir.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/compiler/glsl/ir.cpp b/src/compiler/glsl/ir.cpp index 99e084593bd..c8cb1ee249b 100644 --- a/src/compiler/glsl/ir.cpp +++ b/src/compiler/glsl/ir.cpp @@ -162,11 +162,10 @@ ir_assignment::ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, assert(util_bitcount(write_mask) == this->rhs->type->vector_elements); } -ir_assignment::ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs, - ir_rvalue *condition) +ir_assignment::ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs) : ir_instruction(ir_type_assignment) { - this->condition = condition; + this->condition = NULL; this->rhs = rhs; /* If the RHS is a vector type, assume that all components of the vector diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h index 744e0fe6f74..4ec62db8074 100644 --- a/src/compiler/glsl/ir.h +++ b/src/compiler/glsl/ir.h @@ -1463,7 +1463,7 @@ public: class ir_assignment : public ir_instruction { public: - ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs, ir_rvalue *condition = NULL); + ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs); /** * Construct an assignment with an explicit write mask