Skip to content

Commit fcff252

Browse files
committed
use constant instead of literal
1 parent ec7dfa6 commit fcff252

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/debuginfo/metadata/enums/cpp_like.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ fn build_variant_struct_wrapper_type_di_node<'ll, 'tcx>(
574574
// problems inspecting other value types. Since DISCR_* is typically only going to be
575575
// directly inspected via the debugger visualizer - which compares it to the `tag` value
576576
// (whose type is not modified at all) it shouldn't cause any real problems.
577-
let (t_di, align) = if name == "NAME" {
577+
let (t_di, align) = if name == ASSOC_CONST_DISCR_NAME {
578578
(type_di_node_, align.bits() as u32)
579579
} else {
580580
let ty_u64 = Ty::new_uint(cx.tcx, ty::UintTy::U64);

0 commit comments

Comments
 (0)