[PATCH] Don't modify the DenseMap being iterated over from within the loop

Chandler Carruth chandlerc at google.com
Thu Feb 26 17:50:25 PST 2015


On Thu, Feb 26, 2015 at 5:45 PM, Sanjoy Das <sanjoy at playingwithpointers.com>
wrote:

> > If you have a test case that happens to tickle this, always nice to add.
>
> No, unfortunately.  I am playing around with making the DenseMap and
> DenseSet iterators "fail-fast" (coming soon, watch this space!) and
> this one popped out.


Thats fine. Feel free to just submit simple fixes like this you uncover. =]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150226/9769d219/attachment.html>


More information about the llvm-commits mailing list