Skip to content

Commit 05d5449

Browse files
Rollup merge of #112669 - Nilstrieb:typo, r=jyn514
Fix comment for ptr alignment checks in codegen
2 parents 56a5b7e + 465e4d9 commit 05d5449

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_ssa/src/mir

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/mir/block.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
616616
AssertKind::MisalignedPointerDereference { ref required, ref found } => {
617617
let required = self.codegen_operand(bx, required).immediate();
618618
let found = self.codegen_operand(bx, found).immediate();
619-
// It's `fn panic_bounds_check(index: usize, len: usize)`,
619+
// It's `fn panic_misaligned_pointer_dereference(required: usize, found: usize)`,
620620
// and `#[track_caller]` adds an implicit third argument.
621621
(LangItem::PanicMisalignedPointerDereference, vec![required, found, location])
622622
}

0 commit comments

Comments
 (0)