aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SafeStackLayout.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2020-11-18 19:53:23 -0800
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2021-01-13 18:58:24 -0800
commit9abac60309006db00eca0af406c2e16bef26807c (patch)
tree9b1ed72fab13fb16ee4e2df2920b09b33d98fd6a /llvm/lib/CodeGen/SafeStackLayout.cpp
parenteec856848ccc481b2704ebf64d725e635a3d7dca (diff)
downloadllvm-9abac60309006db00eca0af406c2e16bef26807c.zip
llvm-9abac60309006db00eca0af406c2e16bef26807c.tar.gz
llvm-9abac60309006db00eca0af406c2e16bef26807c.tar.bz2
ADT: Fix reference invalidation in SmallVector::push_back and single-element insert
For small enough, trivially copyable `T`, take the argument by value in `SmallVector::push_back` and copy it when forwarding to `SmallVector::insert_one_impl`. Otherwise, when growing, update the argument appropriately. Differential Revision: https://reviews.llvm.org/D93779
Diffstat (limited to 'llvm/lib/CodeGen/SafeStackLayout.cpp')
0 files changed, 0 insertions, 0 deletions