File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -182,11 +182,7 @@ struct InlineAssemblyGenerator<'a, 'tcx> {
182182impl < ' tcx > InlineAssemblyGenerator < ' _ , ' tcx > {
183183 fn allocate_registers ( & mut self ) {
184184 let sess = self . tcx . sess ;
185- let map = allocatable_registers (
186- self . arch ,
187- |feature| sess. target_features . contains ( & feature) ,
188- & sess. target ,
189- ) ;
185+ let map = allocatable_registers ( self . arch , & sess. target_features , & sess. target ) ;
190186 let mut allocated = FxHashMap :: < _ , ( bool , bool ) > :: default ( ) ;
191187 let mut regs = vec ! [ None ; self . operands. len( ) ] ;
192188
@@ -319,7 +315,7 @@ impl<'tcx> InlineAssemblyGenerator<'_, 'tcx> {
319315 // Allocate stack slots for saving clobbered registers
320316 let abi_clobber = InlineAsmClobberAbi :: parse (
321317 self . arch ,
322- |feature| self . tcx . sess . target_features . contains ( & feature ) ,
318+ & self . tcx . sess . target_features ,
323319 & self . tcx . sess . target ,
324320 sym:: C ,
325321 )
You can’t perform that action at this time.
0 commit comments