Skip to content

Commit b9cb8eb

Browse files
committed
Add missing location info
1 parent c2e6d38 commit b9cb8eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/builder.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1120,9 +1120,9 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
11201120
}
11211121

11221122
let modified_ptr =
1123-
self.cx.context.new_cast(None, ptr, modified_destination_type.make_pointer());
1124-
let modified_destination = modified_ptr.dereference(None);
1125-
self.llbb().add_assignment(None, modified_destination, val);
1123+
self.cx.context.new_cast(self.location, ptr, modified_destination_type.make_pointer());
1124+
let modified_destination = modified_ptr.dereference(self.location);
1125+
self.llbb().add_assignment(self.location, modified_destination, val);
11261126
// TODO(antoyo): handle `MemFlags::NONTEMPORAL`.
11271127
// NOTE: dummy value here since it's never used. FIXME(antoyo): API should not return a value here?
11281128
self.cx.context.new_rvalue_zero(self.type_i32())

0 commit comments

Comments
 (0)