File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -119,16 +119,12 @@ mod x86_64 {
119
119
/// flags also used by Rust/LLVM can result in undefined behavior too.
120
120
#[ inline]
121
121
pub unsafe fn write_raw ( val : u64 ) {
122
+ // FIXME - There's probably a better way than saying we preserve the flags even though we actually don't
122
123
#[ cfg( feature = "inline_asm" ) ]
123
- {
124
- // FIXME - There's probably a better way than saying we preserve the flags even though we actually don't
125
- asm ! ( "push {}; popf" , in( reg) val, options( preserves_flags) )
126
- } ;
124
+ asm ! ( "push {}; popf" , in( reg) val, options( preserves_flags) ) ;
127
125
128
126
#[ cfg( not( feature = "inline_asm" ) ) ]
129
- {
130
- crate :: asm:: x86_64_asm_write_rflags ( val)
131
- }
127
+ crate :: asm:: x86_64_asm_write_rflags ( val) ;
132
128
}
133
129
134
130
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments