about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2021-09-28 13:03:31 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2021-09-28 13:23:54 -0700
commit58b1a127d66b71e1a2180b509856f2c52feca9b3 (patch)
treec2b9192703156e8259e7fb2b0afde55afdbbd014 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent8f8092cc32ec171becef8ceacec7dbb06c5d7d7e (diff)
downloadrust-58b1a127d66b71e1a2180b509856f2c52feca9b3.tar.gz
rust-58b1a127d66b71e1a2180b509856f2c52feca9b3.zip
Avoid allocations and copying in Vec::leak
Don't shrink the Vec (by calling into_boxed_slice) before leaking it.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions