[PATCH] D158361: [clang][Sema] Fix a copy/paste bug in ~Sema()
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 4 06:33:40 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG84643bfa8723: [clang][Sema] Fix a copy/paste bug in ~Sema() (authored by tbaeder).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158361/new/
https://reviews.llvm.org/D158361
Files:
clang/lib/Sema/Sema.cpp
Index: clang/lib/Sema/Sema.cpp
===================================================================
--- clang/lib/Sema/Sema.cpp
+++ clang/lib/Sema/Sema.cpp
@@ -483,7 +483,7 @@
// 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158361.555741.patch
Type: text/x-patch
Size: 481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230904/202dc3b2/attachment-0001.bin>
More information about the cfe-commits
mailing list