Skip to content

Commit

Permalink
Avoid unnecessary interning of enum variant part id
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko committed Mar 9, 2020
1 parent 58303b7 commit e54a829
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/librustc_codegen_llvm/debuginfo/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit e54a829

Please sign in to comment.