diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-01-04 16:15:26 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-01-04 16:15:26 +0000 |
commit | 5b369a61484c52ea0298cfab11858c3fff8bcc00 (patch) | |
tree | e7645e6d3c0f017d62e04917b85174fb0a2b446a /gcc/rust/backend/rust-compile-expr.h | |
parent | 69f6be3ee483c9895b4b5187a44b3e1c8be2ba63 (diff) | |
download | gcc-5b369a61484c52ea0298cfab11858c3fff8bcc00.zip gcc-5b369a61484c52ea0298cfab11858c3fff8bcc00.tar.gz gcc-5b369a61484c52ea0298cfab11858c3fff8bcc00.tar.bz2 |
Fix ICE in generic subsitution of enums containing dataless variants
Dataless variants do not contain fields that can be substituted, which then
hits an assertion on access of the fields for the variant. This patch adds
a guard against the substitution of dataless variants. We could have
removed the assertion which would have also been a good fix but keeping the
assertion for now is very helpful in debugging issues.
Fixs #851
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions