let location = self.allocate(loc_layout, MemoryKind::CallerLocation);
// Initialize fields.
- self.write_immediate(file.to_ref(), self.mplace_field(location, 0).unwrap().into())
+ self.write_immediate(file.to_ref(), &self.mplace_field(&location, 0).unwrap().into())
.expect("writing to memory we just allocated cannot fail");
- self.write_scalar(line, self.mplace_field(location, 1).unwrap().into())
+ self.write_scalar(line, &self.mplace_field(&location, 1).unwrap().into())
.expect("writing to memory we just allocated cannot fail");
- self.write_scalar(col, self.mplace_field(location, 2).unwrap().into())
+ self.write_scalar(col, &self.mplace_field(&location, 2).unwrap().into())
.expect("writing to memory we just allocated cannot fail");
location