Rollup merge of #142352 - workingjubilee:c-int-width-is-an-integer, r=wesleywiser
compiler: Make `c_int_width` an integer Because it is. That's all I got.
This commit is contained in:
@@ -44,10 +44,10 @@ pub trait DerivedTypeCodegenMethods<'tcx>:
|
||||
BaseTypeCodegenMethods + MiscCodegenMethods<'tcx> + HasTyCtxt<'tcx> + HasTypingEnv<'tcx>
|
||||
{
|
||||
fn type_int(&self) -> Self::Type {
|
||||
match &self.sess().target.c_int_width[..] {
|
||||
"16" => self.type_i16(),
|
||||
"32" => self.type_i32(),
|
||||
"64" => self.type_i64(),
|
||||
match &self.sess().target.c_int_width {
|
||||
16 => self.type_i16(),
|
||||
32 => self.type_i32(),
|
||||
64 => self.type_i64(),
|
||||
width => bug!("Unsupported c_int_width: {}", width),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user