@@ -35,7 +35,7 @@ LegalityPredicates::typeInSet(unsigned TypeIdx,
3535 std::initializer_list<LLT> TypesInit) {
3636 SmallVector<LLT, 4 > Types = TypesInit;
3737 return [=](const LegalityQuery &Query) {
38- return llvm::is_contained (std::move ( Types) , Query.Types [TypeIdx]);
38+ return llvm::is_contained (Types, Query.Types [TypeIdx]);
3939 };
4040}
4141
@@ -45,7 +45,7 @@ LegalityPredicate LegalityPredicates::typePairInSet(
4545 SmallVector<std::pair<LLT, LLT>, 4 > Types = TypesInit;
4646 return [=](const LegalityQuery &Query) {
4747 std::pair<LLT, LLT> Match = {Query.Types [TypeIdx0], Query.Types [TypeIdx1]};
48- return llvm::is_contained (std::move ( Types) , Match);
48+ return llvm::is_contained (Types, Match);
4949 };
5050}
5151
@@ -56,7 +56,7 @@ LegalityPredicate LegalityPredicates::typeTupleInSet(
5656 return [=](const LegalityQuery &Query) {
5757 std::tuple<LLT, LLT, LLT> Match = {
5858 Query.Types [TypeIdx0], Query.Types [TypeIdx1], Query.Types [TypeIdx2]};
59- return llvm::is_contained (std::move ( Types) , Match);
59+ return llvm::is_contained (Types, Match);
6060 };
6161}
6262
0 commit comments