[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
Sun Aug 20 04:59:18 PDT 2023


tbaeder created this revision.
tbaeder added a reviewer: saar.raz.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rG LLVM Github Monorepo

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.551819.patch
Type: text/x-patch
Size: 481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230820/b7613571/attachment-0001.bin>


More information about the cfe-commits mailing list