Commit fd4f1d0b authored by vegorov@chromium.org's avatar vegorov@chromium.org

Fix compilation with strict aliasing enabled on GCC 4.4.1

Review URL: http://codereview.chromium.org/3166006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5239 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 15d73253
...@@ -47,7 +47,7 @@ template <class T> ...@@ -47,7 +47,7 @@ template <class T>
inline T* Handle<T>::operator*() const { inline T* Handle<T>::operator*() const {
ASSERT(location_ != NULL); ASSERT(location_ != NULL);
ASSERT(reinterpret_cast<Address>(*location_) != kHandleZapValue); ASSERT(reinterpret_cast<Address>(*location_) != kHandleZapValue);
return *location_; return *BitCast<T**>(location_);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment