Skip to content

Commit f538778

Browse files
MalaySanghichencha3
authored andcommitted
Convert copy to r-value reference. (llvm#85606)
That seems to be the intention based on calling code.
1 parent 440435f commit f538778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/CodeGen/MachinePassManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct MachinePassConcept
5656
};
5757

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

0 commit comments

Comments
 (0)