[all-commits] [llvm/llvm-project] f0b2a1: ASTMatchers: Avoid using SmallVector::set_size()
Duncan P. N. Exon Smith via All-commits
all-commits at lists.llvm.org
Tue Jan 11 17:02:01 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f0b2a1a629dab17f2ea161a9281d8dc63b37a7a0
https://github.com/llvm/llvm-project/commit/f0b2a1a629dab17f2ea161a9281d8dc63b37a7a0
Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
Date: 2022-01-11 (Tue, 11 Jan 2022)
Changed paths:
M clang/lib/ASTMatchers/Dynamic/Marshallers.h
Log Message:
-----------
ASTMatchers: Avoid using SmallVector::set_size()
Update `variadicMatcherDescriptor` to assert on reserved capacity and
to call `emplace_back()` instead of calling `set_size()` and constructing
the element in-place.
Differential Revision: https://reviews.llvm.org/D115379
More information about the All-commits
mailing list