Skip to content

Commit f910019

Browse files
committed
add a note to Memory::new mentioning tcx.data_layout
1 parent 29516c3 commit f910019

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/memory.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ pub struct Memory {
4949
}
5050

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

0 commit comments

Comments
 (0)