Fix core::hint::black_box support

This commit is contained in:
bjorn3 2020-07-03 16:39:36 +02:00
parent d032c24476
commit 21edec4ea5

View File

@ -689,6 +689,9 @@ fn trans_stmt<'tcx>(
asm_str_style: _, asm_str_style: _,
} = asm; } = asm;
match &*asm_code.as_str() { match &*asm_code.as_str() {
"" => {
// Black box
}
cpuid if cpuid.contains("cpuid") => { cpuid if cpuid.contains("cpuid") => {
crate::trap::trap_unimplemented( crate::trap::trap_unimplemented(
fx, fx,