From fd4f1d0bfb52da4706643dfcdf4de167e04b7c24 Mon Sep 17 00:00:00 2001 From: "vegorov@chromium.org" Date: Wed, 11 Aug 2010 13:01:28 +0000 Subject: [PATCH] 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 --- src/handles-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handles-inl.h b/src/handles-inl.h index 8478bb5cd9..bf19f5f864 100644 --- a/src/handles-inl.h +++ b/src/handles-inl.h @@ -47,7 +47,7 @@ template inline T* Handle::operator*() const { ASSERT(location_ != NULL); ASSERT(reinterpret_cast
(*location_) != kHandleZapValue); - return *location_; + return *BitCast(location_); }