diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2025-09-27 20:00:54 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2025-09-27 22:13:53 -0700 |
| commit | b3f3e36c72952736be5b9e0360ee5b86148f2c29 (patch) | |
| tree | 42ba96ca2f49a181d491ffe9e75ea8e9d5c02a0d /compiler/rustc_codegen_llvm/src/intrinsic.rs | |
| parent | 4082d6a3f0347c2fc4b8c8d5a6a38ed7248fa161 (diff) | |
| download | rust-b3f3e36c72952736be5b9e0360ee5b86148f2c29.tar.gz rust-b3f3e36c72952736be5b9e0360ee5b86148f2c29.zip | |
compiler: remove AbiAlign inside TargetDataLayout
This maintains AbiAlign usage in public API and most of the compiler, but direct access of these fields is now in terms of Align only.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/intrinsic.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/intrinsic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/intrinsic.rs b/compiler/rustc_codegen_llvm/src/intrinsic.rs index 50398a32142..94a74e27bbc 100644 --- a/compiler/rustc_codegen_llvm/src/intrinsic.rs +++ b/compiler/rustc_codegen_llvm/src/intrinsic.rs @@ -1047,7 +1047,7 @@ fn codegen_emcc_try<'ll, 'tcx>( // create an alloca and pass a pointer to that. let ptr_size = bx.tcx().data_layout.pointer_size(); let ptr_align = bx.tcx().data_layout.pointer_align().abi; - let i8_align = bx.tcx().data_layout.i8_align.abi; + let i8_align = bx.tcx().data_layout.i8_align; // Required in order for there to be no padding between the fields. assert!(i8_align <= ptr_align); let catch_data = bx.alloca(2 * ptr_size, ptr_align); |
