Update compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs

This commit is contained in:
Rich Kadel 2020-11-25 11:41:23 -08:00 committed by GitHub
parent b1df6c0e63
commit d334f589c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),