diff options
author | Mark Wielaard <mark@klomp.org> | 2021-08-03 22:45:38 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-08-04 00:34:38 +0200 |
commit | d04886a4ea8e91801455a2b9808c1c9bbec896e4 (patch) | |
tree | 3ae6e2c5147eb9f433bfe05bbf5d66850fc99f04 /gcc/read-rtl.c | |
parent | c707190b29e1e5b2d20fa9d68dcd7f043659aed4 (diff) | |
download | gcc-d04886a4ea8e91801455a2b9808c1c9bbec896e4.zip gcc-d04886a4ea8e91801455a2b9808c1c9bbec896e4.tar.gz gcc-d04886a4ea8e91801455a2b9808c1c9bbec896e4.tar.bz2 |
Always check the result of expect_token while parsing
When expect_token fails it produces an error and return a
nullptr. Make sure to always check the result of expect_token so we
don't use a nullptr token and crash.
Resolves: https://github.com/Rust-GCC/gccrs/issues/603
Diffstat (limited to 'gcc/read-rtl.c')
0 files changed, 0 insertions, 0 deletions