Skip to content

Commit

Permalink
functional: fix std::move usage in Factory::constant
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed Oct 12, 2024
1 parent 20bf868 commit 2dd0ae3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/functional.h
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,8 @@ namespace Functional {
return add(Fn::memory_write, mem.sort(), {mem, addr, data});
}
Node constant(RTLIL::Const value) {
return add(IR::NodeData(Fn::constant, std::move(value)), Sort(value.size()), {});
int s = value.size();
return add(IR::NodeData(Fn::constant, std::move(value)), Sort(s), {});
}
Node create_pending(int width) {
return add(Fn::buf, Sort(width), {});
Expand Down

0 comments on commit 2dd0ae3

Please sign in to comment.