diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-05-06 12:30:47 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-05-06 16:36:29 +0100 |
commit | 0d8c298443615c1fd75c9af10ca26c7c36b69273 (patch) | |
tree | 338e39f6f0ea7ac3485c03288ca883db65a5d932 /gcc/rust/backend/rust-compile-pattern.cc | |
parent | 9ea940e4dcabbf99fbb44c125a0af7cf82e48146 (diff) | |
download | gcc-0d8c298443615c1fd75c9af10ca26c7c36b69273.zip gcc-0d8c298443615c1fd75c9af10ca26c7c36b69273.tar.gz gcc-0d8c298443615c1fd75c9af10ca26c7c36b69273.tar.bz2 |
Ensure we don't return error_mark_node for loop expressions
Loop expressions can return a value even if its a unit-type so we must
ensure we don't return an error_mark_node for the eventual coercion site
for the unit-type case.
Offending test-case was: rust/compile/torture/loop7.rs
Diffstat (limited to 'gcc/rust/backend/rust-compile-pattern.cc')
0 files changed, 0 insertions, 0 deletions