Skip to content

Commit

Permalink
fix recently added Retag statement
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Dec 3, 2018
1 parent 005df5f commit ef2b18a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/librustc_mir/shim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,11 @@ fn build_drop_shim<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
// Function arguments should be retagged
mir.basic_blocks_mut()[START_BLOCK].statements.insert(0, Statement {
source_info,
kind: StatementKind::Retag { fn_entry: true, place: dropee_ptr.clone() },
kind: StatementKind::Retag {
fn_entry: true,
two_phase: false,
place: dropee_ptr.clone(),
},
});
// We use raw ptr operations, better prepare the alias tracking for that
mir.basic_blocks_mut()[START_BLOCK].statements.insert(1, Statement {
Expand Down

0 comments on commit ef2b18a

Please sign in to comment.