about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2021-08-10 11:50:33 +0100
committerGary Guo <gary@garyguo.net>2021-08-12 16:16:57 +0100
commit1fb1643129f9ac6a63bddf04d69e28632615c0df (patch)
treeaa035ac611fae3e47bacef57441174539f7bedc0 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentae90dcf0207c57c3034f00b07048d63f8b2363c8 (diff)
downloadrust-1fb1643129f9ac6a63bddf04d69e28632615c0df.tar.gz
rust-1fb1643129f9ac6a63bddf04d69e28632615c0df.zip
Implement `black_box` using intrinsic
The new implementation allows some `memcpy`s to be optimized away,
so the uninit value in ui/sanitize/memory.rs is constructed directly
onto the return place. Therefore the sanitizer now says that the
value is allocated by `main` rather than `random`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions