about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorCamelid <camelidcamel@gmail.com>2021-03-01 19:12:03 -0800
committerCamelid <camelidcamel@gmail.com>2021-03-05 19:41:37 -0800
commitc09d9d34f02c72b93da25ba27758db7d7cddb1f4 (patch)
treeb37de07db02a7a62b1415ee89a84d87ec85a8aed /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentff39c46959b0c6926c0199f59f65af585e131e7d (diff)
downloadrust-c09d9d34f02c72b93da25ba27758db7d7cddb1f4.tar.gz
rust-c09d9d34f02c72b93da25ba27758db7d7cddb1f4.zip
Don't unnecessarily clone some fields in `Context`
There was no need to clone `id_map` because it was reset before each
item was rendered. `deref_id_map` was not reset, but it was keyed by
`DefId` and thus was unlikely to have collisions (at least for now).

Now we just clone the fields that need to be cloned, and instead create
fresh versions of the others.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions