The properties size is compressed as a member of the Operation class
to assume a multiple of 8B is used for the storage. This matched the
natural alignment / padding on 64 bits platforms, however we need some
explicit padding on 32 bits platforms, llvm::TrailingObjects will
compress and misalign.
Fixes #62763
unsigned numSuccessors = successors.size();
unsigned numOperands = operands.size();
unsigned numResults = resultTypes.size();
- int opPropertiesAllocSize = name.getOpPropertyByteSize();
+ int opPropertiesAllocSize = llvm::alignTo<8>(name.getOpPropertyByteSize());
// If the operation is known to have no operands, don't allocate an operand
// storage.