diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-07-17 19:52:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-17 19:52:16 +0000 |
commit | e4cdb24c468b8a848980f7138767fbe093471c5b (patch) | |
tree | 0fb6789a85aa49e4044679b8a6b10d26e953dc25 /gcc/rust/resolve/rust-ast-resolve-expr.cc | |
parent | fd2bd659e44e5b7fea92bc34a4864f057f387490 (diff) | |
parent | 9c7a580aa13707a18c53bc772c3d9301dd9bfb2c (diff) | |
download | gcc-e4cdb24c468b8a848980f7138767fbe093471c5b.zip gcc-e4cdb24c468b8a848980f7138767fbe093471c5b.tar.gz gcc-e4cdb24c468b8a848980f7138767fbe093471c5b.tar.bz2 |
Merge #1391
1391: Fix ICE on duplicate compilation of ExternBlock items r=philberty a=philberty
When we declare an extern block after where it is used the query
compilation system in the backend code-gen pass will resolve this and
compile as required. But when the iteration of the crate as part of the
pipeline we end up compiling this function again. The check we used to stop
this was copy paste from the other function items but in this case the
check for function_completed is not valid as this is a prototype for an
extern item so we dont add this to the translation unit as an fndecl which
meant we hit the ICE where we compile and add it again.
Fixes #1323
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions