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 Satisfactions; - Satisfactions.reserve(Satisfactions.size()); + Satisfactions.reserve(SatisfactionCache.size()); for (auto &Node : SatisfactionCache) Satisfactions.push_back(&Node); for (auto *Node : Satisfactions)