From 11d5fa6e87e3584f72056ecc2b17f88c58323dde Mon Sep 17 00:00:00 2001 From: Saar Raz Date: Wed, 18 Dec 2019 21:43:53 +0200 Subject: [PATCH] [Concepts] Fix incorrect move out of temporary in D41910 Moves out of temporaries caused warnings that failed builds. --- clang/lib/Sema/SemaConcept.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/Sema/SemaConcept.cpp b/clang/lib/Sema/SemaConcept.cpp index f9d54a8114695b..63b8e06a7aef7e 100755 --- a/clang/lib/Sema/SemaConcept.cpp +++ b/clang/lib/Sema/SemaConcept.cpp @@ -653,7 +653,7 @@ static NormalForm makeCNF(const NormalizedConstraint &Normalized) { if (Normalized.getCompoundKind() == NormalizedConstraint::CCK_Conjunction) { LCNF.reserve(LCNF.size() + RCNF.size()); while (!RCNF.empty()) - LCNF.push_back(std::move(RCNF.pop_back_val())); + LCNF.push_back(RCNF.pop_back_val()); return LCNF; } @@ -682,7 +682,7 @@ static NormalForm makeDNF(const NormalizedConstraint &Normalized) { if (Normalized.getCompoundKind() == NormalizedConstraint::CCK_Disjunction) { LDNF.reserve(LDNF.size() + RDNF.size()); while (!RDNF.empty()) - LDNF.push_back(std::move(RDNF.pop_back_val())); + LDNF.push_back(RDNF.pop_back_val()); return LDNF; }