diff options
| author | Dante-Broggi <34220985+Dante-Broggi@users.noreply.github.com> | 2019-08-29 14:24:50 -0400 |
|---|---|---|
| committer | Dante-Broggi <34220985+Dante-Broggi@users.noreply.github.com> | 2019-08-29 14:24:50 -0400 |
| commit | 8657fb1140165f770a928b04095fc025308a4fb2 (patch) | |
| tree | 16edd4cb4d4901b5d58375145eabc3e327fcf38c /src/librustc_codegen_llvm/builder.rs | |
| parent | 0cc1c8d2e71f798ca28813e5dca3adb0e791684d (diff) | |
| download | rust-8657fb1140165f770a928b04095fc025308a4fb2.tar.gz rust-8657fb1140165f770a928b04095fc025308a4fb2.zip | |
`new_sized` is mostly used without align
so rename it `new_sized_aligned`. 6/11 use `align` = `layout.align.abi`. `from_const_alloc` uses `alloc.align`, but that is `assert_eq!` to `layout.align.abi`. only 4/11 use something interesting for `align`.
Diffstat (limited to 'src/librustc_codegen_llvm/builder.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/builder.rs b/src/librustc_codegen_llvm/builder.rs index 894e5c2fd3d..1f9b3523fbd 100644 --- a/src/librustc_codegen_llvm/builder.rs +++ b/src/librustc_codegen_llvm/builder.rs @@ -561,7 +561,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { let align = dest.align.restrict_for_offset(dest.layout.field(self.cx(), 0).size); cg_elem.val.store(&mut body_bx, - PlaceRef::new_sized(current, cg_elem.layout, align)); + PlaceRef::new_sized_aligned(current, cg_elem.layout, align)); let next = body_bx.inbounds_gep(current, &[self.const_usize(1)]); body_bx.br(header_bx.llbb()); |
