about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2022-01-28 10:41:36 +0100
committerMichael Woerister <michaelwoerister@posteo>2022-01-28 10:41:36 +0100
commitc10f9e7d1d6deba9797642fdd24a01ba9bb25d47 (patch)
tree3c5a928a9431ad73c8ba3d7ffb3c7b074cca6537 /compiler/rustc_codegen_llvm/src
parentd33e317a72548ad9fb1439fcd1cfa53d17aefd84 (diff)
downloadrust-c10f9e7d1d6deba9797642fdd24a01ba9bb25d47.tar.gz
rust-c10f9e7d1d6deba9797642fdd24a01ba9bb25d47.zip
[debuginfo] Fix and unify handling of fat pointers in debuginfo: Don't mark fat pointer fields as artificial.
LLDB does not seem to see fields if they are marked with DW_AT_artificial
which breaks pretty printers that use these fields for decoding fat pointers.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
index dd9c83481af..1266b540aae 100644
--- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
+++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
@@ -491,7 +491,7 @@ fn pointer_or_reference_metadata<'ll, 'tcx>(
                     offset: layout.fields.offset(abi::FAT_PTR_ADDR),
                     size: addr_field.size,
                     align: addr_field.align.abi,
-                    flags: DIFlags::FlagArtificial,
+                    flags: DIFlags::FlagZero,
                     discriminant: None,
                     source_info: None,
                 },
@@ -501,7 +501,7 @@ fn pointer_or_reference_metadata<'ll, 'tcx>(
                     offset: layout.fields.offset(abi::FAT_PTR_EXTRA),
                     size: extra_field.size,
                     align: extra_field.align.abi,
-                    flags: DIFlags::FlagArtificial,
+                    flags: DIFlags::FlagZero,
                     discriminant: None,
                     source_info: None,
                 },