@@ -1294,18 +1294,14 @@ fn store_non_ref_bindings(bcx: @mut Block,
1294
1294
1295
1295
fn insert_lllocals ( bcx : @mut Block ,
1296
1296
bindings_map : & BindingsMap ,
1297
- binding_mode : IrrefutablePatternBindingMode ,
1298
1297
add_cleans : bool ) -> @mut Block {
1299
1298
/*!
1300
1299
* For each binding in `data.bindings_map`, adds an appropriate entry into
1301
1300
* the `fcx.lllocals` map. If add_cleans is true, then adds cleanups for
1302
1301
* the bindings.
1303
1302
*/
1304
1303
1305
- let llmap = match binding_mode {
1306
- BindLocal => bcx. fcx . lllocals ,
1307
- BindArgument => bcx. fcx . llargs
1308
- } ;
1304
+ let llmap = bcx. fcx . lllocals ;
1309
1305
1310
1306
for ( & ident, & binding_info) in bindings_map. iter ( ) {
1311
1307
let llval = match binding_info. trmode {
@@ -1358,7 +1354,7 @@ fn compile_guard(bcx: @mut Block,
1358
1354
bcx = store_non_ref_bindings ( bcx,
1359
1355
data. bindings_map ,
1360
1356
Some ( & mut temp_cleanups) ) ;
1361
- bcx = insert_lllocals ( bcx, data. bindings_map , BindLocal , false ) ;
1357
+ bcx = insert_lllocals ( bcx, data. bindings_map , false ) ;
1362
1358
1363
1359
let val = unpack_result ! ( bcx, {
1364
1360
do with_scope_result( bcx, guard_expr. info( ) ,
@@ -1875,7 +1871,7 @@ fn trans_match_inner(scope_cx: @mut Block,
1875
1871
}
1876
1872
1877
1873
// insert bindings into the lllocals map and add cleanups
1878
- bcx = insert_lllocals ( bcx, arm_data. bindings_map , BindLocal , true ) ;
1874
+ bcx = insert_lllocals ( bcx, arm_data. bindings_map , true ) ;
1879
1875
1880
1876
bcx = controlflow:: trans_block ( bcx, & arm_data. arm . body , dest) ;
1881
1877
bcx = trans_block_cleanups ( bcx, block_cleanups ( arm_data. bodycx ) ) ;
0 commit comments