diff --git a/llvm/lib/Support/SmallVector.cpp b/llvm/lib/Support/SmallVector.cpp index 76554f3ad555f..06de40799b4c5 100644 --- a/llvm/lib/Support/SmallVector.cpp +++ b/llvm/lib/Support/SmallVector.cpp @@ -55,7 +55,8 @@ static_assert(sizeof(SmallVector) >= alignof(Struct32B), #ifdef __CHERI_PURE_CAPABILITY__ #warning "TODO size check" #else -static_assert(sizeof(SmallVector) == sizeof(void *) * 3, +static_assert(sizeof(SmallVector) == + sizeof(unsigned) * 2 + sizeof(void *) * 2, "wasted space in SmallVector size 1"); #endif