Skip to content

Commit b5fef37

Browse files
Apply suggestions from code review
Co-authored-by: Wesley Wiser <[email protected]>
1 parent 51268d2 commit b5fef37

File tree

2 files changed

+2
-2
lines changed
  • compiler/rustc_codegen_llvm/src/coverageinfo
  • src/test/run-make-fulldeps/coverage-llvmir-base

2 files changed

+2
-2
lines changed

compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ impl CoverageMapGenerator {
169169
);
170170

171171
// Create the coverage data header (Note, fields 0 and 2 are now always zero,
172-
// as of `llvm::coverage::CovMapVersion::Version4`.
172+
// as of `llvm::coverage::CovMapVersion::Version4`.)
173173
let zero_was_n_records_val = cx.const_u32(0);
174174
let filenames_size_val = cx.const_u32(filenames_size as u32);
175175
let zero_was_coverage_size_val = cx.const_u32(0);

src/test/run-make-fulldeps/coverage-llvmir-base/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ else
5656
-DINSTR_PROF_ORDERFILE='$(DATA_SECTION_PREFIX)__llvm_orderfile'
5757
endif
5858

59-
ifeq ($(LLVM_VERSION_11_PLUS),false)
59+
ifeq ($(LLVM_VERSION_11_PLUS),true)
6060
all: test_llvm_ir
6161
else
6262
$(info Rust option `-Z instrument-coverage` requires LLVM 11 or higher. Test skipped.)

0 commit comments

Comments
 (0)