about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-09-16 14:48:33 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-09-16 14:48:33 +0200
commitf78cd44602fd8360657b9a205061ca7bf0592140 (patch)
tree128288bda3e581e946307d0f4e0f8f4266e28cc9 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parentaf7eededaa2a239c1e23c40024cf557a4b83fffa (diff)
downloadrust-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