diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-09-10 15:14:51 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-09-10 15:31:10 +0100 |
commit | 0c409fcf5678709303126aba07932f9f2a8519da (patch) | |
tree | 9fdbc8c17b58d73ba543b108892b913baffb7a88 /gcc/rust/backend/rust-compile-expr.h | |
parent | c0254d7efe135ca3de755504a1f042010ee45786 (diff) | |
download | gcc-0c409fcf5678709303126aba07932f9f2a8519da.zip gcc-0c409fcf5678709303126aba07932f9f2a8519da.tar.gz gcc-0c409fcf5678709303126aba07932f9f2a8519da.tar.bz2 |
Fix bug with monomorphizing of trait items
When we monomorphize functions we need to check if we have already
generated this function already. All function items have a DefId which is
unique for the crate and HIR item this means for generic implementations
of an item we end up with mappings of:
DefId -> [ (concete-tyty-fntype, GCC::Function), ... ]
So for any function we can lookup for that DefId is there a suitable
version of this function already compiled. This was working untill we have
generic trait items which also need to be handled in the same way.
Fixes #668
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions