Index: third_party/WebKit/Source/platform/heap/Handle.h |
diff --git a/third_party/WebKit/Source/platform/heap/Handle.h b/third_party/WebKit/Source/platform/heap/Handle.h |
index 64e43fd71243011277fb2052e26dfe146148b0dc..8915068ff185aa3204d2542af2c03a22b4de037c 100644 |
--- a/third_party/WebKit/Source/platform/heap/Handle.h |
+++ b/third_party/WebKit/Source/platform/heap/Handle.h |
@@ -771,7 +771,11 @@ public: |
checkPointer(); |
} |
- T* get() const { return m_raw; } |
+ T* get() const |
+ { |
+ static_assert(IsFullyDefined<T>::value, "T is not fully defined."); |
haraken
2015/11/19 01:37:26
Would you replace other static_assert(sizeof(T)) i
peria
2015/11/19 03:57:51
Acknowledged.
|
+ return m_raw; |
+ } |
void clear() { m_raw = nullptr; } |
@@ -779,6 +783,7 @@ public: |
protected: |
void checkPointer() |
{ |
+ static_assert(IsFullyDefined<T>::value, "T is not fully defined."); |
#if ENABLE(ASSERT) && defined(ADDRESS_SANITIZER) |
if (!m_raw) |
return; |