Skip to content

Commit

Permalink
yay for NLL
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Nov 25, 2018
1 parent af54eb2 commit 0fac350
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/librustc/mir/interpret/allocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,9 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
},
};

{
let endian = cx.data_layout().endian;
let dst = self.get_bytes_mut(cx, ptr, type_size)?;
write_target_uint(endian, dst, bytes).unwrap();
}
let endian = cx.data_layout().endian;
let dst = self.get_bytes_mut(cx, ptr, type_size)?;
write_target_uint(endian, dst, bytes).unwrap();

// See if we have to also write a relocation
match val {
Expand Down

0 comments on commit 0fac350

Please sign in to comment.