diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2021-03-13 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2021-03-15 23:26:03 +0100 |
| commit | 1796cc0e6c43f1958d746c94608503c900b3a28e (patch) | |
| tree | fdb3668caaed6a272c90ecffc699ef6296a23aa0 /compiler/rustc_codegen_llvm/src | |
| parent | 107896c32d5dda4db508968ff34997a39d286966 (diff) | |
| download | rust-1796cc0e6c43f1958d746c94608503c900b3a28e.tar.gz rust-1796cc0e6c43f1958d746c94608503c900b3a28e.zip | |
Make source-based code coverage compatible with MIR inlining
When codegenning code coverage use the instance that coverage data was originally generated for, to ensure basic level of compatibility with MIR inlining.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs index 444a9d4ba04..1cea927f50c 100644 --- a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs +++ b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs @@ -254,7 +254,7 @@ fn save_function_record( /// /// 1. The file name of an "Unreachable" function must match the file name of the existing /// codegenned (covered) function to which the unreachable code regions will be added. -/// 2. The function to which the unreachable code regions will be added must not be a genaric +/// 2. The function to which the unreachable code regions will be added must not be a generic /// function (must not have type parameters) because the coverage tools will get confused /// if the codegenned function has more than one instantiation and additional `CodeRegion`s /// attached to only one of those instantiations. |
