diff options
Diffstat (limited to 'llvm/include/llvm/Bitcode/BitcodeCommon.h')
| -rw-r--r-- | llvm/include/llvm/Bitcode/BitcodeCommon.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/include/llvm/Bitcode/BitcodeCommon.h b/llvm/include/llvm/Bitcode/BitcodeCommon.h index 6a3e74550bc4..22d1872fe49c 100644 --- a/llvm/include/llvm/Bitcode/BitcodeCommon.h +++ b/llvm/include/llvm/Bitcode/BitcodeCommon.h @@ -19,10 +19,14 @@ namespace llvm { struct AllocaPackedValues { - using Align = Bitfield::Element<unsigned, 0, 5>; - using UsedWithInAlloca = Bitfield::Element<bool, Align::NextBit, 1>; + // We increased the number of bits needed to represent alignment to be more + // than 5, but to preserve backward compatibility we store the upper bits + // separately. + using AlignLower = Bitfield::Element<unsigned, 0, 5>; + using UsedWithInAlloca = Bitfield::Element<bool, AlignLower::NextBit, 1>; using ExplicitType = Bitfield::Element<bool, UsedWithInAlloca::NextBit, 1>; using SwiftError = Bitfield::Element<bool, ExplicitType::NextBit, 1>; + using AlignUpper = Bitfield::Element<unsigned, SwiftError::NextBit, 3>; }; } // namespace llvm |
