File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/librustc_mir/transform Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ pub struct InstrumentCoverage;
25
25
/// constructing the arguments for `llvm.instrprof.increment`.
26
26
pub ( crate ) fn provide ( providers : & mut Providers < ' _ > ) {
27
27
providers. coverage_data = |tcx, def_id| {
28
- let body = tcx. optimized_mir ( def_id) ;
28
+ let mir_body = tcx. optimized_mir ( def_id) ;
29
29
let count_code_region_fn =
30
30
tcx. require_lang_item ( lang_items:: CountCodeRegionFnLangItem , None ) ;
31
31
let mut num_counters: u32 = 0 ;
32
- for ( _, data) in traversal:: preorder ( body ) {
32
+ for ( _, data) in traversal:: preorder ( mir_body ) {
33
33
if let Some ( terminator) = & data. terminator {
34
34
if let TerminatorKind :: Call { func : Operand :: Constant ( func) , .. } = & terminator. kind
35
35
{
You can’t perform that action at this time.
0 commit comments