summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-01-25 00:02:48 +0000
committerEric Fiselier <eric@efcs.ca>2018-01-25 00:02:48 +0000
commitd053b5973057f2a4c9cd7c76e61b34ad60d3caea (patch)
tree183ff805ee1bc8104eacc67e41ecc4bbc5d960ed /llvm
parentb1539e0a0d442021aa950f3747b97bb5f1cb541a (diff)
downloadbcm5719-llvm-d053b5973057f2a4c9cd7c76e61b34ad60d3caea.tar.gz
bcm5719-llvm-d053b5973057f2a4c9cd7c76e61b34ad60d3caea.zip
Fix PR35564 - std::list splice/erase incorrectly throw in debug mode.
There was a bug in the implementation of splice where the container sizes were updated before decrementing one of the iterators. Afterwards, the result of decrementing the iterator was flagged as UB by the debug implementation because the container was reported to be empty. This patch fixes that bug by delaying the updating of the container sizes until after the iterators have been correctly constructed. llvm-svn: 323390
Diffstat (limited to 'llvm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud