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 <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24904>
This commit is contained in:
parent
5ce6e09ffc
commit
932d7fe4cd
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue