about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-08-25 20:09:17 -0700
committerNoah Lev <camelidcamel@gmail.com>2021-08-25 20:09:17 -0700
commit4478ecc352d6f3f12c1cb4b9dd5e7e06762286ee (patch)
treeee5a8d865ca92a95b53447400046fb2e92a4bade /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parentd932e62dd9a6137a831d0917aa80aefd7ff47018 (diff)
downloadrust-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