diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-11-19 17:12:27 -0800 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2021-01-13 20:48:08 -0800 |
commit | 260a856c2abcef49c7cb3bdcd999701db3e2af38 (patch) | |
tree | 691ae23214743865ca45e2e70c778e43735fe269 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 752fafda3dbf1f4885c64408a13ddb67c91ccb13 (diff) | |
download | llvm-260a856c2abcef49c7cb3bdcd999701db3e2af38.zip llvm-260a856c2abcef49c7cb3bdcd999701db3e2af38.tar.gz llvm-260a856c2abcef49c7cb3bdcd999701db3e2af38.tar.bz2 |
ADT: Fix reference invalidation in SmallVector::resize
For small enough, trivially copyable `T`, take the parameter by-value in
`SmallVector::resize`. Otherwise, when growing, update the arugment
appropriately.
Differential Revision: https://reviews.llvm.org/D93781
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions