From 932d7fe4cd454bfdb4a2315f88a38eaa5ec0d49a Mon Sep 17 00:00:00 2001 From: M Henning Date: Sat, 19 Aug 2023 15:46:14 -0400 Subject: [PATCH] nv/codegen: Change copy-constructor call to assign This almost certainly intends to call the user-definied assignment operator here instead of the automatically generated copy constructor. Reviewed-by: Karol Herbst Part-of: --- src/nouveau/codegen/nv50_ir_peephole.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nouveau/codegen/nv50_ir_peephole.cpp b/src/nouveau/codegen/nv50_ir_peephole.cpp index 55fe02c..5f68dd2 100644 --- a/src/nouveau/codegen/nv50_ir_peephole.cpp +++ b/src/nouveau/codegen/nv50_ir_peephole.cpp @@ -744,7 +744,8 @@ ConstantFolding::expr(Instruction *i, switch (i->op) { case OP_MAD: case OP_FMA: { - ImmediateValue src0, src1 = *i->getSrc(0)->asImm(); + ImmediateValue src0, src1; + src1 = *i->getSrc(0)->asImm(); // Move the immediate into position 1, where we know it might be // emittable. However it might not be anyways, as there may be other -- 2.7.4