Changeset 83704 in webkit


Ignore:
Timestamp:
Apr 12, 2011 11:45:26 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-12 Ben Taylor <bentaylor.solx86@gmail.com>

Reviewed by Alexey Proskuryakov.

https://bugs.webkit.org/show_bug.cgi?id=58131

Provide a workaround for an obscure Studio 12 compiler bug, which
couldn't call src->~T() on a const T *src.

  • wtf/Vector.h:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r83669 r83704  
     12011-04-12  Ben Taylor  <bentaylor.solx86@gmail.com>
     2
     3        Reviewed by Alexey Proskuryakov.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=58131
     6
     7        Provide a workaround for an obscure Studio 12 compiler bug, which
     8        couldn't call src->~T() on a const T *src.
     9
     10        * wtf/Vector.h:
     11
    1122011-04-12  Gavin Barraclough  <barraclough@apple.com>
    213
  • trunk/Source/JavaScriptCore/wtf/Vector.h

    r82212 r83704  
    130130            while (src != srcEnd) {
    131131                new (dst) T(*src);
     132#if COMPILER(SUNCC) && __SUNPRO_CC <= 0x590
     133                const_cast<T*>(src)->~T(); // Work around obscure SunCC 12 compiler bug.
     134#else
    132135                src->~T();
     136#endif
    133137                ++dst;
    134138                ++src;
Note: See TracChangeset for help on using the changeset viewer.