Skip to content

Commit

Permalink
add a note to Memory::new mentioning tcx.data_layout
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jun 1, 2016
1 parent 29516c3 commit f910019
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ pub struct Memory {
}

impl Memory {
// FIXME: pass tcx.data_layout (This would also allow it to use primitive type alignments to diagnose unaligned memory accesses.)
pub fn new(pointer_size: usize) -> Self {
Memory {
alloc_map: HashMap::new(),
Expand Down

0 comments on commit f910019

Please sign in to comment.