diff options
| author | Antoni Boucher <bouanto@zoho.com> | 2024-11-18 18:55:57 -0500 |
|---|---|---|
| committer | Antoni Boucher <bouanto@zoho.com> | 2024-11-18 18:55:57 -0500 |
| commit | b9cb8ebca6fdbb4217ddd9d90c7136e38c5e99d4 (patch) | |
| tree | a14a5fec07efef0c9c320845ef52620abb5b9fbc | |
| parent | c2e6d38b8a44f92133c2cc44dace96fccc357d39 (diff) | |
| download | rust-b9cb8ebca6fdbb4217ddd9d90c7136e38c5e99d4.tar.gz rust-b9cb8ebca6fdbb4217ddd9d90c7136e38c5e99d4.zip | |
Add missing location info
| -rw-r--r-- | src/builder.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/builder.rs b/src/builder.rs index 15ebcf42b3f..97a1a175f20 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -1120,9 +1120,9 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> { } let modified_ptr = - self.cx.context.new_cast(None, ptr, modified_destination_type.make_pointer()); - let modified_destination = modified_ptr.dereference(None); - self.llbb().add_assignment(None, modified_destination, val); + self.cx.context.new_cast(self.location, ptr, modified_destination_type.make_pointer()); + let modified_destination = modified_ptr.dereference(self.location); + self.llbb().add_assignment(self.location, modified_destination, val); // TODO(antoyo): handle `MemFlags::NONTEMPORAL`. // NOTE: dummy value here since it's never used. FIXME(antoyo): API should not return a value here? self.cx.context.new_rvalue_zero(self.type_i32()) |
