X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=compiler%2Frustc_codegen_ssa%2Fsrc%2Fglue.rs;fp=compiler%2Frustc_codegen_ssa%2Fsrc%2Fglue.rs;h=c34f1dbf8569da79ebbfdb083e20f68f95745de2;hb=353b0b1106c09291d3c691e2bd6290fdf14b6691;hp=0f6e6032f9bffb68a2a7098886643f284cb40ea0;hpb=9ffffee422eedc489e3035cb88b0dab8dc9ea408;p=rustc.git diff --git a/compiler/rustc_codegen_ssa/src/glue.rs b/compiler/rustc_codegen_ssa/src/glue.rs index 0f6e6032f9..c34f1dbf85 100644 --- a/compiler/rustc_codegen_ssa/src/glue.rs +++ b/compiler/rustc_codegen_ssa/src/glue.rs @@ -46,7 +46,7 @@ pub fn size_and_align_of_dst<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>( // NOTE: ideally, we want the effects of both `unchecked_smul` and `unchecked_umul` // (resulting in `mul nsw nuw` in LLVM IR), since we know that the multiplication // cannot signed wrap, and that both operands are non-negative. But at the time of writing, - // `BuilderMethods` can't do this, and it doesn't seem to enable any further optimizations. + // the `LLVM-C` binding can't do this, and it doesn't seem to enable any further optimizations. bx.unchecked_smul(info.unwrap(), bx.const_usize(unit.size.bytes())), bx.const_usize(unit.align.abi.bytes()), )