We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec7dfa6 commit fcff252Copy full SHA for fcff252
compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs
@@ -574,7 +574,7 @@ fn build_variant_struct_wrapper_type_di_node<'ll, 'tcx>(
574
// problems inspecting other value types. Since DISCR_* is typically only going to be
575
// directly inspected via the debugger visualizer - which compares it to the `tag` value
576
// (whose type is not modified at all) it shouldn't cause any real problems.
577
- let (t_di, align) = if name == "NAME" {
+ let (t_di, align) = if name == ASSOC_CONST_DISCR_NAME {
578
(type_di_node_, align.bits() as u32)
579
} else {
580
let ty_u64 = Ty::new_uint(cx.tcx, ty::UintTy::U64);
0 commit comments