diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-05-13 11:50:31 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-05-13 12:56:30 +0100 |
commit | d326288aa4f32707f1340e2f39b56bd6ab608802 (patch) | |
tree | 8f987d715d879f369620061a5e2d4c336f5bae38 /gcc/rust/rust-diagnostics.h | |
parent | a1c148518de1cb8f60f779dc206f663e8593191a (diff) | |
download | gcc-d326288aa4f32707f1340e2f39b56bd6ab608802.zip gcc-d326288aa4f32707f1340e2f39b56bd6ab608802.tar.gz gcc-d326288aa4f32707f1340e2f39b56bd6ab608802.tar.bz2 |
Fix duplicated function generation for generics
When emitting the backend IR we need to check if we have already compiled
one already. This is all due to the fact when we do generic substitutions
in type resolution its only upon usage of a function the function is
substituted it gains a new unique ty_ref HIR ID to make sure new
substituted versions of a type have unique ids.
This means we can end up with multiple substitued versions of the same
function which end up being compiled multiple times. This was also the case
for generic data types but is already fixed.
Fixes #403
Diffstat (limited to 'gcc/rust/rust-diagnostics.h')
0 files changed, 0 insertions, 0 deletions