about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2022-07-08 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2022-07-08 11:41:36 +0200
commit9139a63b25e53722d7225cf373e4d713e0d5596f (patch)
tree5e0fefc2c113a55e4de79e820dd786877834eefc /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parenteba361ae36be41e42fb8fdf138455307e0ad407c (diff)
downloadrust-9139a63b25e53722d7225cf373e4d713e0d5596f.tar.gz
rust-9139a63b25e53722d7225cf373e4d713e0d5596f.zip
Fix cloning from a BitSet with a different domain size
The previous implementation incorrectly assumed that the
number of words in a bit set is equal to the domain size.

The new implementation delegates to `Vec::clone_from` which
is specialized for `Copy` elements.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions