Ignore:
Timestamp:
Jan 21, 2011, 4:38:11 PM (15 years ago)
Author:
[email protected]
Message:

Work around a Clang bug <rdar://problem/8876150> that leads to it incorrectly emitting an access
control warning when a client tries to use operator bool exposed above via "using PageBlock::operator bool".

Reviewed by Sam Weinig.

  • wtf/PageAllocation.h:

(WTF::PageAllocation::operator bool):

  • wtf/PageReservation.h:

(WTF::PageReservation::operator bool):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/wtf/PageReservation.h

    r74431 r76409  
    6565    {
    6666    }
    67    
    68     using PageBlock::operator bool;
     67
    6968    using PageBlock::base;
    7069    using PageBlock::size;
     70
     71#ifndef __clang__
     72    using PageBlock::operator bool;
     73#else
     74    // FIXME: This is a workaround for <rdar://problem/8876150>, wherein Clang incorrectly emits an access
     75    // control warning when a client tries to use operator bool exposed above via "using PageBlock::operator bool".
     76    operator bool() const { return PageBlock::operator bool(); }
     77#endif
    7178
    7279    void commit(void* start, size_t size)
Note: See TracChangeset for help on using the changeset viewer.