@@ -397,8 +397,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
397397
398398 PassMode :: Cast ( cast_ty, _) => {
399399 let op = match self . locals [ mir:: RETURN_PLACE ] {
400- LocalRef :: Operand ( Some ( op ) ) => op,
401- LocalRef :: Operand ( None ) => bug ! ( "use of return before def" ) ,
400+ LocalRef :: Operand ( op ) => op,
401+ LocalRef :: PendingOperand => bug ! ( "use of return before def" ) ,
402402 LocalRef :: Place ( cg_place) => OperandRef {
403403 val : Ref ( cg_place. llval , None , cg_place. align ) ,
404404 layout : cg_place. layout ,
@@ -1673,7 +1673,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
16731673 match self . locals [ index] {
16741674 LocalRef :: Place ( dest) => dest,
16751675 LocalRef :: UnsizedPlace ( _) => bug ! ( "return type must be sized" ) ,
1676- LocalRef :: Operand ( None ) => {
1676+ LocalRef :: PendingOperand => {
16771677 // Handle temporary places, specifically `Operand` ones, as
16781678 // they don't have `alloca`s.
16791679 return if fn_ret. is_indirect ( ) {
@@ -1694,7 +1694,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
16941694 ReturnDest :: DirectOperand ( index)
16951695 } ;
16961696 }
1697- LocalRef :: Operand ( Some ( _ ) ) => {
1697+ LocalRef :: Operand ( _ ) => {
16981698 bug ! ( "place local already assigned to" ) ;
16991699 }
17001700 }
@@ -1737,7 +1737,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
17371737 IndirectOperand ( tmp, index) => {
17381738 let op = bx. load_operand ( tmp) ;
17391739 tmp. storage_dead ( bx) ;
1740- self . locals [ index] = LocalRef :: Operand ( Some ( op ) ) ;
1740+ self . locals [ index] = LocalRef :: Operand ( op ) ;
17411741 self . debug_introduce_local ( bx, index) ;
17421742 }
17431743 DirectOperand ( index) => {
@@ -1752,7 +1752,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
17521752 } else {
17531753 OperandRef :: from_immediate_or_packed_pair ( bx, llval, ret_abi. layout )
17541754 } ;
1755- self . locals [ index] = LocalRef :: Operand ( Some ( op ) ) ;
1755+ self . locals [ index] = LocalRef :: Operand ( op ) ;
17561756 self . debug_introduce_local ( bx, index) ;
17571757 }
17581758 }
0 commit comments