Fix core::hint::black_box support
This commit is contained in:
parent
d032c24476
commit
21edec4ea5
1 changed files with 3 additions and 0 deletions
|
@ -689,6 +689,9 @@ fn trans_stmt<'tcx>(
|
|||
asm_str_style: _,
|
||||
} = asm;
|
||||
match &*asm_code.as_str() {
|
||||
"" => {
|
||||
// Black box
|
||||
}
|
||||
cpuid if cpuid.contains("cpuid") => {
|
||||
crate::trap::trap_unimplemented(
|
||||
fx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue