Skip to content

Commit 622da5d

Browse files
debuginfo: Change C++-like encoding for enums.
The updated encoding should be able to handle niche layouts where more than one variant has fields.
1 parent e2b52ff commit 622da5d

File tree

15 files changed

+846
-368
lines changed

15 files changed

+846
-368
lines changed

compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ macro_rules! return_if_di_node_created_in_meantime {
114114
}
115115

116116
/// Extract size and alignment from a TyAndLayout.
117+
#[inline]
117118
fn size_and_align_of<'tcx>(ty_and_layout: TyAndLayout<'tcx>) -> (Size, Align) {
118119
(ty_and_layout.size, ty_and_layout.align.abi)
119120
}

0 commit comments

Comments
 (0)