diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-08-25 20:09:17 -0700 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-08-25 20:09:17 -0700 |
| commit | 4478ecc352d6f3f12c1cb4b9dd5e7e06762286ee (patch) | |
| tree | ee5a8d865ca92a95b53447400046fb2e92a4bade /compiler/rustc_llvm/llvm-wrapper/Linker.cpp | |
| parent | d932e62dd9a6137a831d0917aa80aefd7ff47018 (diff) | |
| download | rust-4478ecc352d6f3f12c1cb4b9dd5e7e06762286ee.tar.gz rust-4478ecc352d6f3f12c1cb4b9dd5e7e06762286ee.zip | |
Don't panic if `close_tag()` is called without tags to close
This can happen when a tag is opened after the length limit is reached; the tag will not end up being added to `unclosed_tags` because the queue will never be flushed. So, now, if the `unclosed_tags` stack is empty, `close_tag()` does nothing. This change fixes a panic in the `limit_0` unit test.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions
