We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 466296f commit 664732fCopy full SHA for 664732f
clang/lib/Sema/SemaConcept.cpp
@@ -2700,8 +2700,9 @@ FormulaType SubsumptionChecker::Normalize(const NormalizedConstraint &NC) {
2700
});
2701
2702
if (Compound.getCompoundKind() == FormulaType::Kind) {
2703
+ unsigned SizeLeft = Left.size();
2704
Res = std::move(Left);
- Res.reserve(Left.size() + Right.size());
2705
+ Res.reserve(SizeLeft + Right.size());
2706
std::for_each(std::make_move_iterator(Right.begin()),
2707
std::make_move_iterator(Right.end()), Add);
2708
return Res;
0 commit comments