diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-01-31 16:29:09 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-02-01 13:34:14 +1100 |
| commit | 832fcfb64fdf47714b181bc29f2d93cb5a3383f4 (patch) | |
| tree | 8247f05c061dd5be623b717b79a9377fa336f3dc /compiler/rustc_codegen_llvm/src/debuginfo/utils.rs | |
| parent | 854f22563c8daf92709fae18ee6aed52953835cd (diff) | |
| download | rust-832fcfb64fdf47714b181bc29f2d93cb5a3383f4.tar.gz rust-832fcfb64fdf47714b181bc29f2d93cb5a3383f4.zip | |
Introduce `DIBuilderBox`, an owning pointer to `DIBuilder`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo/utils.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/utils.rs b/compiler/rustc_codegen_llvm/src/debuginfo/utils.rs index 6e841293477..cc1d504b430 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/utils.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/utils.rs @@ -41,7 +41,7 @@ pub(crate) fn debug_context<'a, 'll, 'tcx>( #[inline] #[allow(non_snake_case)] pub(crate) fn DIB<'a, 'll>(cx: &'a CodegenCx<'ll, '_>) -> &'a DIBuilder<'ll> { - cx.dbg_cx.as_ref().unwrap().builder + cx.dbg_cx.as_ref().unwrap().builder.as_ref() } pub(crate) fn get_namespace_for_item<'ll>(cx: &CodegenCx<'ll, '_>, def_id: DefId) -> &'ll DIScope { |
