diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h index b7c31a8e3063..36728d101196 100644 --- a/llvm/lib/Transforms/Vectorize/VPlan.h +++ b/llvm/lib/Transforms/Vectorize/VPlan.h @@ -668,6 +668,7 @@ public: }; /// Class to record and manage LLVM IR flags. +LLVM_PACKED_START class VPIRFlags { enum class OperationType : unsigned char { Cmp, @@ -1070,6 +1071,7 @@ public: void printFlags(raw_ostream &O) const; #endif }; +LLVM_PACKED_END static_assert(sizeof(VPIRFlags) <= 3, "VPIRFlags should not grow");