Skip to content

Commit 1241e75

Browse files
committed
Fix load alignment being applied to load result
1 parent fb95096 commit 1241e75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
959959
let deref = ptr.dereference(self.location).to_rvalue();
960960
let loaded_value = function.new_local(
961961
self.location,
962-
aligned_type,
962+
pointee_ty,
963963
&format!("loadedValue{}", self.next_value_counter()),
964964
);
965965
block.add_assignment(self.location, loaded_value, deref);

0 commit comments

Comments
 (0)