diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2024-10-27 21:34:49 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2024-10-28 09:58:30 -0700 |
| commit | 88a9edc091fad78a8e3784fe656e369417bb6acc (patch) | |
| tree | 2fb538fde3e05d71fa7bb9dfeafffb3ee483e81f /compiler/rustc_codegen_llvm/src/debuginfo | |
| parent | 5f5c243ca020e45cb6ee48a1f635a929eb611fd2 (diff) | |
| download | rust-88a9edc091fad78a8e3784fe656e369417bb6acc.tar.gz rust-88a9edc091fad78a8e3784fe656e369417bb6acc.zip | |
compiler: Add `is_uninhabited` and use LayoutS accessors
This reduces the need of the compiler to peek on the fields of LayoutS.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs index 3de4ca77e7d..5b32a542750 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs @@ -364,7 +364,7 @@ impl<'ll, 'tcx> DebugInfoCodegenMethods<'tcx> for CodegenCx<'ll, 'tcx> { let mut flags = DIFlags::FlagPrototyped; - if fn_abi.ret.layout.abi.is_uninhabited() { + if fn_abi.ret.layout.is_uninhabited() { flags |= DIFlags::FlagNoReturn; } |
