[llvm-commits] [PATCH] PR1094: SetVector iterators can be used to corrupt SetVectors

Gordon Henriksen gordonhenriksen at mac.com
Tue Jan 16 17:28:59 PST 2007


Killing a silly little PR, http://llvm.org/bugs/show_bug.cgi?id=1094.

With this patch, SetVector::iterator is equivalent to  
vector_type::const_iterator rather than vector_type::iterator, which  
guards its class invariants. Also fixes incorrect users;  
PredicateSimplifier.cpp assumed that SetVector<T>::begin() was  
assignable to std::vector<T>::iterator.

g.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070116/c7760b8b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PR1094.patch
Type: application/octet-stream
Size: 3463 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070116/c7760b8b/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070116/c7760b8b/attachment-0001.html>


More information about the llvm-commits mailing list