Revision: 5239 Author: [email protected] Date: Wed Aug 11 06:01:28 2010 Log: Fix compilation with strict aliasing enabled on GCC 4.4.1
Review URL: http://codereview.chromium.org/3166006 http://code.google.com/p/v8/source/detail?r=5239 Modified: /branches/bleeding_edge/src/handles-inl.h ======================================= --- /branches/bleeding_edge/src/handles-inl.h Fri Aug 14 10:19:51 2009 +++ /branches/bleeding_edge/src/handles-inl.h Wed Aug 11 06:01:28 2010 @@ -47,7 +47,7 @@ inline T* Handle<T>::operator*() const { ASSERT(location_ != NULL); ASSERT(reinterpret_cast<Address>(*location_) != kHandleZapValue); - return *location_; + return *BitCast<T**>(location_); } -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
