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 {
119119 /// flags also used by Rust/LLVM can result in undefined behavior too.
120120 #[ inline]
121121 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
122123 #[ 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) ) ;
127125
128126 #[ 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) ;
132128 }
133129
134130 #[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments