Skip to content

Commit

Permalink
[clang][Sema] Fix a copy/paste bug in ~Sema()
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D158361
  • Loading branch information
tbaederr committed Sep 4, 2023
1 parent 2f8690b commit 84643bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Sema/Sema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ Sema::~Sema() {

// Delete cached satisfactions.
std::vector<ConstraintSatisfaction *> Satisfactions;
Satisfactions.reserve(Satisfactions.size());
Satisfactions.reserve(SatisfactionCache.size());
for (auto &Node : SatisfactionCache)
Satisfactions.push_back(&Node);
for (auto *Node : Satisfactions)
Expand Down

0 comments on commit 84643bf

Please sign in to comment.