Skip to content

Commit 11d5fa6

Browse files
committed
[Concepts] Fix incorrect move out of temporary in D41910
Moves out of temporaries caused warnings that failed builds.
1 parent 8adae60 commit 11d5fa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaConcept.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ static NormalForm makeCNF(const NormalizedConstraint &Normalized) {
653653
if (Normalized.getCompoundKind() == NormalizedConstraint::CCK_Conjunction) {
654654
LCNF.reserve(LCNF.size() + RCNF.size());
655655
while (!RCNF.empty())
656-
LCNF.push_back(std::move(RCNF.pop_back_val()));
656+
LCNF.push_back(RCNF.pop_back_val());
657657
return LCNF;
658658
}
659659

@@ -682,7 +682,7 @@ static NormalForm makeDNF(const NormalizedConstraint &Normalized) {
682682
if (Normalized.getCompoundKind() == NormalizedConstraint::CCK_Disjunction) {
683683
LDNF.reserve(LDNF.size() + RDNF.size());
684684
while (!RDNF.empty())
685-
LDNF.push_back(std::move(RDNF.pop_back_val()));
685+
LDNF.push_back(RDNF.pop_back_val());
686686
return LDNF;
687687
}
688688

0 commit comments

Comments
 (0)