Steps to reproduce issue rust-lang/rust#53945 :
- Edit build_good.sh and build_bad.sh with the paths to your
clang
,opt
, andllc
executeables. Note that these should be built from the same version of LLVM that Rust uses. - Run
./build_good.sh
, and try running the produceda,out
executeable - Run
./build_bad.sh
, and note that linking fails with the__sancov_guards
error message.