about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorRich Kadel <richkadel@google.com>2020-10-23 11:41:56 -0700
committerRich Kadel <richkadel@google.com>2020-10-23 12:00:30 -0700
commita7bc1a2edf6066c16b01f40a2a0120c9d6ff4a49 (patch)
tree590bba8c1ef866aede93e3e8293f35e74fb10ff7 /src/test/codegen/src-hash-algorithm
parent07a63e6d1fabf3560e8e1e17c1d56b10a06152d9 (diff)
downloadrust-a7bc1a2edf6066c16b01f40a2a0120c9d6ff4a49.tar.gz
rust-a7bc1a2edf6066c16b01f40a2a0120c9d6ff4a49.zip
Make codegen coverage_context optional, and check
Addresses Issue #78286

Libraries compiled with coverage and linked with out enabling coverage
would fail when attempting to add the library's coverage statements to
the codegen coverage context (None).

Now, if coverage statements are encountered while compiling / linking
with `-Z instrument-coverage` disabled, codegen will *not* attempt to
add code regions to a coverage map, and it will not inject the LLVM
instrprof_increment intrinsic calls.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions