[clang] 84643bf - [clang][Sema] Fix a copy/paste bug in ~Sema()
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 4 06:33:20 PDT 2023
Author: Timm Bäder
Date: 2023-09-04T15:32:35+02:00
New Revision: 84643bfa87233a0907481fa948b34d25795bb841
URL: https://github.com/llvm/llvm-project/commit/84643bfa87233a0907481fa948b34d25795bb841
DIFF: https://github.com/llvm/llvm-project/commit/84643bfa87233a0907481fa948b34d25795bb841.diff
LOG: [clang][Sema] Fix a copy/paste bug in ~Sema()
Differential Revision: https://reviews.llvm.org/D158361
Added:
Modified:
clang/lib/Sema/Sema.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index faf375fb8fab3e7..6220e3f9e6d6917 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -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)
More information about the cfe-commits
mailing list