14 lines
728 B
Diff
14 lines
728 B
Diff
|
diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h
|
||
|
index 2e6d2dc6ce90..be2cf6cc1fee 100644
|
||
|
--- a/llvm/include/llvm/ADT/SmallVector.h
|
||
|
+++ b/llvm/include/llvm/ADT/SmallVector.h
|
||
|
@@ -1163,7 +1163,7 @@ template <typename T> struct CalculateSmallVectorDefaultInlinedElements {
|
||
|
// happens on a 32-bit host and then fails due to sizeof(T) *increasing* on a
|
||
|
// 64-bit host, is expected to be very rare.
|
||
|
static_assert(
|
||
|
- sizeof(T) <= 256,
|
||
|
+ sizeof(T) <= 288,
|
||
|
"You are trying to use a default number of inlined elements for "
|
||
|
"`SmallVector<T>` but `sizeof(T)` is really big! Please use an "
|
||
|
"explicit number of inlined elements with `SmallVector<T, N>` to make "
|