Avoid unnecessary interning of enum variant part id

This commit is contained in:
Tomasz Miąsko 2020-03-06 00:00:00 +00:00
parent 58303b77e0
commit e54a829b57

View File

@ -229,10 +229,7 @@ impl TypeMap<'ll, 'tcx> {
&mut self,
enum_type_id: UniqueTypeId,
) -> String {
let variant_part_type_id =
format!("{}_variant_part", self.get_unique_type_id_as_string(enum_type_id));
self.unique_id_interner.intern(&variant_part_type_id);
variant_part_type_id
format!("{}_variant_part", self.get_unique_type_id_as_string(enum_type_id))
}
}