diff options
| author | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2024-02-23 23:23:35 -0500 |
|---|---|---|
| committer | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2024-02-26 22:28:09 -0500 |
| commit | 123015e7224fda0e9600962aa23202ac322271bc (patch) | |
| tree | a5df56c558e7f196c326824fb7e4e7f7f59006a3 /compiler/rustc_codegen_llvm/src | |
| parent | 71ffdf7ff7ac6df5f9f64de7e780b8345797e8a0 (diff) | |
| download | rust-123015e7224fda0e9600962aa23202ac322271bc.tar.gz rust-123015e7224fda0e9600962aa23202ac322271bc.zip | |
always use gep inbounds i8 (ptradd) for field offsets
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/type_.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/type_.rs b/compiler/rustc_codegen_llvm/src/type_.rs index 447c4ed1f0c..c0245de36f7 100644 --- a/compiler/rustc_codegen_llvm/src/type_.rs +++ b/compiler/rustc_codegen_llvm/src/type_.rs @@ -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>, |
