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 b38fc16 commit 548951aCopy full SHA for 548951a
compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs
@@ -540,7 +540,7 @@ fn build_variant_struct_wrapper_type_di_node<'ll, 'tcx>(
540
// problems inspecting other value types. Since DISCR_* is typically only going to be
541
// directly inspected via the debugger visualizer - which compares it to the `tag` value
542
// (whose type is not modified at all) it shouldn't cause any real problems.
543
- let (t_di, align) = if name == "NAME" {
+ let (t_di, align) = if name == ASSOC_CONST_DISCR_NAME {
544
(type_di_node_, align.bits() as u32)
545
} else {
546
let ty_u64 = Ty::new_uint(cx.tcx, ty::UintTy::U64);
0 commit comments