Document why the volatile read is used
This commit is contained in:
parent
1ea57aa3f9
commit
3b6b4899bf
1 changed files with 1 additions and 0 deletions
|
@ -122,6 +122,7 @@ pub fn black_box<T>(dummy: T) -> T {
|
|||
)
|
||||
)
|
||||
)] {
|
||||
// asm.js and emscripten do not support inline assembly
|
||||
unsafe {
|
||||
let ret = crate::ptr::read_volatile(&dummy);
|
||||
crate::mem::forget(dummy);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue