diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-09-16 14:48:33 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-09-16 14:48:33 +0200 |
| commit | f78cd44602fd8360657b9a205061ca7bf0592140 (patch) | |
| tree | 128288bda3e581e946307d0f4e0f8f4266e28cc9 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | af7eededaa2a239c1e23c40024cf557a4b83fffa (diff) | |
| download | rust-f78cd44602fd8360657b9a205061ca7bf0592140.tar.gz rust-f78cd44602fd8360657b9a205061ca7bf0592140.zip | |
Optimize ThreadInfo::with
The RefCell is now borrowed exactly once. In addition a code sequence that contains an unwrap that is guaranteed to never panic at runtime is replaced with get_or_insert_with, which makes the intended behavior clearer and will not emit code to panic even without optimizations.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
