mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
Update compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs
This commit is contained in:
parent
b1df6c0e63
commit
d334f589c4
@ -31,7 +31,7 @@ pub fn finalize<'ll, 'tcx>(cx: &CodegenCx<'ll, 'tcx>) {
|
||||
let version = coverageinfo::mapping_version();
|
||||
if version != 3 {
|
||||
cx.tcx.sess.fatal("rustc option `-Z instrument-coverage` requires LLVM 11 or higher.");
|
||||
}```
|
||||
}
|
||||
|
||||
let function_coverage_map = match cx.coverage_context() {
|
||||
Some(ctx) => ctx.take_function_coverage_map(),
|
||||
|
Loading…
Reference in New Issue
Block a user