@@ -1307,7 +1307,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
1307
1307
hir:: InlineAsmOperand :: Sym { expr : self . lower_expr_mut ( expr) }
1308
1308
}
1309
1309
} ;
1310
- Some ( op )
1310
+ Some ( ( op , * op_sp ) )
1311
1311
} )
1312
1312
. collect ( ) ;
1313
1313
@@ -1326,7 +1326,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
1326
1326
} = * p
1327
1327
{
1328
1328
let op_sp = asm. operands [ operand_idx] . 1 ;
1329
- match & operands[ operand_idx] {
1329
+ match & operands[ operand_idx] . 0 {
1330
1330
hir:: InlineAsmOperand :: In { reg, .. }
1331
1331
| hir:: InlineAsmOperand :: Out { reg, .. }
1332
1332
| hir:: InlineAsmOperand :: InOut { reg, .. }
@@ -1385,8 +1385,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
1385
1385
let mut used_input_regs = FxHashMap :: default ( ) ;
1386
1386
let mut used_output_regs = FxHashMap :: default ( ) ;
1387
1387
let mut required_features: Vec < & str > = vec ! [ ] ;
1388
- for ( idx, op) in operands. iter ( ) . enumerate ( ) {
1389
- let op_sp = asm. operands [ idx] . 1 ;
1388
+ for ( idx, & ( ref op, op_sp) ) in operands. iter ( ) . enumerate ( ) {
1390
1389
if let Some ( reg) = op. reg ( ) {
1391
1390
// Make sure we don't accidentally carry features from the
1392
1391
// previous iteration.
@@ -1458,8 +1457,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
1458
1457
skip = true ;
1459
1458
1460
1459
let idx2 = * o. get ( ) ;
1461
- let op2 = & operands[ idx2] ;
1462
- let op_sp2 = asm. operands [ idx2] . 1 ;
1460
+ let & ( ref op2, op_sp2) = & operands[ idx2] ;
1463
1461
let reg2 = match op2. reg ( ) {
1464
1462
Some ( asm:: InlineAsmRegOrRegClass :: Reg ( r) ) => r,
1465
1463
_ => unreachable ! ( ) ,
0 commit comments