Skip to content

Commit 866e3cf

Browse files
committed
Merge pull request #325 from dcci/pessimizing
[Sema/CSSolver] Moving a local object in return prevents copy elision.
2 parents ef97872 + 40d7a0a commit 866e3cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Solution ConstraintSystem::finalize(
191191
solution.OpenedExistentialTypes.insert(openedExistential);
192192
}
193193

194-
return std::move(solution);
194+
return solution;
195195
}
196196

197197
void ConstraintSystem::applySolution(const Solution &solution) {

0 commit comments

Comments
 (0)