1
Fork 0

always use gep inbounds i8 (ptradd) for field offsets

This commit is contained in:
Erik Desjardins 2024-02-23 23:23:35 -05:00
parent 71ffdf7ff7
commit 123015e722
8 changed files with 11 additions and 63 deletions

View file

@ -250,9 +250,6 @@ impl<'ll, 'tcx> LayoutTypeMethods<'tcx> for CodegenCx<'ll, 'tcx> {
fn is_backend_scalar_pair(&self, layout: TyAndLayout<'tcx>) -> bool {
layout.is_llvm_scalar_pair()
}
fn backend_field_index(&self, layout: TyAndLayout<'tcx>, index: usize) -> u64 {
layout.llvm_field_index(self, index)
}
fn scalar_pair_element_backend_type(
&self,
layout: TyAndLayout<'tcx>,