Skip to content

Commit

Permalink
debuginfo: Generators use u32 as discriminant type repr
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko committed Mar 5, 2020
1 parent e54a16c commit ebd941b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc_codegen_llvm/debuginfo/metadata.rs
Expand Up @@ -1802,9 +1802,9 @@ fn prepare_enum_metadata(
DIB(cx),
name.as_ptr().cast(),
name.len(),
// FIXME: what if enumeration has i128 discriminant?
variant_index.as_usize() as i64,
false, // FIXME: IsUnsigned.
// Generators use u32 as discriminant type.
variant_index.as_u32().into(),
true, // IsUnsigned
))
}
})
Expand Down

0 comments on commit ebd941b

Please sign in to comment.