diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-08-26 20:52:35 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-01-31 14:16:50 +0100 |
commit | 245ce6f26a1688ad69a1802ec50fa865db409eec (patch) | |
tree | 5f786306606c736a33ca3b9bd8a9f2bf9b68f9a6 /gcc/rust/backend | |
parent | 3663d7ef66624b267114db5c59a959cdc7816aaa (diff) | |
download | gcc-245ce6f26a1688ad69a1802ec50fa865db409eec.zip gcc-245ce6f26a1688ad69a1802ec50fa865db409eec.tar.gz gcc-245ce6f26a1688ad69a1802ec50fa865db409eec.tar.bz2 |
gccrs: Add guards against getting data from an empty vector
gcc/rust/ChangeLog:
* typecheck/rust-tyctx.cc (TypeCheckContext::pop_return_type): Add
guards around `std::vector<T>.pop_back()`.
(TypeCheckContext::peek_context): Likewise for `std::vector<T>.back()`.
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions