about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2020-10-15 23:14:50 +0300
committerSimonas Kazlauskas <git@kazlauskas.me>2020-10-16 21:46:41 +0300
commit8436cfe71db9a3f0c6b6d8f44fd18b4d6612627a (patch)
treefb4a8b0f91f7502d51ff2b1161b06603d587a3ef /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent7f587168102498a488abf608a86c7fdfa62fb7bb (diff)
downloadrust-8436cfe71db9a3f0c6b6d8f44fd18b4d6612627a.tar.gz
rust-8436cfe71db9a3f0c6b6d8f44fd18b4d6612627a.zip
instrument-coverage: try our best to not ICE
instrument-coverage was ICEing for me on some code, in particular code
that had devirtualized paths from standard library. Instrument coverage
probably has no bussiness dictating which paths are valid and which
aren't so just feed it everything and whatever and let tooling deal with
other stuff.

For example, with this commit we can generate coverage hitpoints for
these interesting paths:

* `/rustc/.../library/core/lib.rs` – non-devirtualized path for libcore
* `/home/.../src/library/core/lib.rs` – devirtualized version of above
* `<inline asm>`, `<anon>` and many similar synthetic paths

Even if those paths somehow get to the instrumentation pass, I'd much
rather get hits for these weird paths and hope some of them work (as
would be the case for devirtualized path to libcore), rather than have
compilation fail entirely.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions