diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-04-19 12:40:39 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-04-19 12:43:21 +0100 |
commit | 5528001eca60bb115e6afc94105ecc7b3820eb52 (patch) | |
tree | 439c89e149353c1e6c912ec93c06d3a2c47c6136 /gcc/rust/parse/rust-parse-impl.h | |
parent | d17e0aa7695ddb383e0a4fc43185e2ab42c81703 (diff) | |
download | gcc-5528001eca60bb115e6afc94105ecc7b3820eb52.zip gcc-5528001eca60bb115e6afc94105ecc7b3820eb52.tar.gz gcc-5528001eca60bb115e6afc94105ecc7b3820eb52.tar.bz2 |
Fix ICE during HIR lowering of ExprWithBlock MatchExpr
When we are lowering blocks using the visitor pattern we must use the
BaseClass of ExprWithBlock to abstract away the notion that this expr
has a block such that we can handle cases like a block expr vs expressions
with a block. This makes the usage of hir lowering of match expressions to
be recursive, if we had more fine grained visitors in the AST we could fix
these types of problems with compile time enforced interfaces.
Fixes #858
Diffstat (limited to 'gcc/rust/parse/rust-parse-impl.h')
0 files changed, 0 insertions, 0 deletions