aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2020-11-19 16:58:16 -0800
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2021-01-13 20:00:44 -0800
commit3043e5a5c33c4c871f4a1dfd621a8839f9a1f0b3 (patch)
tree8dbfd83bd484d863d9266845d7333b3194884b77 /clang/lib/Frontend/CompilerInvocation.cpp
parent49142991a685bd427d7e877c29c77371dfb7634c (diff)
downloadllvm-3043e5a5c33c4c871f4a1dfd621a8839f9a1f0b3.zip
llvm-3043e5a5c33c4c871f4a1dfd621a8839f9a1f0b3.tar.gz
llvm-3043e5a5c33c4c871f4a1dfd621a8839f9a1f0b3.tar.bz2
ADT: Fix reference invalidation in N-element SmallVector::append and insert
For small enough, trivially copyable `T`, take the parameter by-value in `SmallVector::append` and `SmallVector::insert`. Otherwise, when growing, update the arugment appropriately. Differential Revision: https://reviews.llvm.org/D93780
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions