[libcxx] r208319 - Add Address Sanitizer support to std::vector

Stephan Tolksdorf st at quanttec.com
Mon May 12 04:12:01 PDT 2014


> On Thu, May 8, 2014 at 6:14 PM, Marshall Clow <mclow.lists at gmail.com
> <mailto:mclow.lists at gmail.com>> wrote:
(...)
>     @@ -1535,6 +1582,7 @@ vector<_Tp, _Allocator>::push_back(const
>       {
>           if (this->__end_ != this->__end_cap())
>           {
>     +        __annotate_increase(1);
>               __alloc_traits::construct(this->__alloc(),
>
>       _VSTD::__to_raw_pointer(this->__end_), __x);
>               ++this->__end_;
(...)

Some of these annotations aren't exception safe. Is that intentional?

- Stephan



More information about the cfe-commits mailing list