Skip to content

Commit

Permalink
Convert copy to r-value reference. (#85606)
Browse files Browse the repository at this point in the history
That seems to be the intention based on calling code.
  • Loading branch information
MalaySanghi committed Mar 19, 2024
1 parent 924a1dc commit ff60a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/include/llvm/CodeGen/MachinePassManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct MachinePassConcept
};

template <typename PassT> struct MachinePassModel : MachinePassConcept {
explicit MachinePassModel(PassT Pass) : Pass(std::move(Pass)) {}
explicit MachinePassModel(PassT &&Pass) : Pass(std::move(Pass)) {}
// We have to explicitly define all the special member functions because MSVC
// refuses to generate them.
MachinePassModel(const MachinePassModel &Arg) : Pass(Arg.Pass) {}
Expand Down

0 comments on commit ff60a84

Please sign in to comment.