Index: third_party/WebKit/Source/wtf/SizeLimits.cpp |
diff --git a/third_party/WebKit/Source/wtf/SizeLimits.cpp b/third_party/WebKit/Source/wtf/SizeLimits.cpp |
index 6999a30f4752885b0c4c08be05e00cc222c2a1c2..4ac6c5df1d3d50d554864e063b000e4d3e29e3e9 100644 |
--- a/third_party/WebKit/Source/wtf/SizeLimits.cpp |
+++ b/third_party/WebKit/Source/wtf/SizeLimits.cpp |
@@ -88,6 +88,7 @@ static_assert(sizeof(RefPtr<RefCounted<int>>) == sizeof(int*), |
static_assert(sizeof(String) == sizeof(int*), "String should stay small"); |
static_assert(sizeof(AtomicString) == sizeof(String), |
"AtomicString should stay small"); |
+#if !DCHECK_IS_ON() |
static_assert(sizeof(Vector<int>) == |
sizeof(SameSizeAsVectorWithInlineCapacity<int>), |
"Vector should stay small"); |
@@ -100,4 +101,5 @@ static_assert(sizeof(Vector<int, 2>) == |
static_assert(sizeof(Vector<int, 3>) == |
sizeof(SameSizeAsVectorWithInlineCapacity<int, 3>), |
"Vector should stay small"); |
+#endif |
} // namespace WTF |