Reviewers: Søren Gjesse,
Description:
Fix compilation with strict aliasing enabled on GCC 4.4.1
Please review this at http://codereview.chromium.org/3166006/show
Affected files:
M src/handles-inl.h
Index: src/handles-inl.h
diff --git a/src/handles-inl.h b/src/handles-inl.h
index
8478bb5cd949b0472c96643661066c4f45f595fd..bf19f5f8648cf94740ad0328de036b388903565d
100644
--- a/src/handles-inl.h
+++ b/src/handles-inl.h
@@ -47,7 +47,7 @@ template <class T>
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