================ @@ -3004,6 +3010,15 @@ void MicrosoftRecordLayoutBuilder::layoutField(const FieldDecl *FD) { } else { FieldOffset = Size.alignTo(Info.Alignment); } + + uint64_t UnpaddedFielddOffsetInBits = + Context.toBits(DataSize) - RemainingBitsInField; ---------------- mikaelholmen wrote:
Could it be that RemainingBitsInField is not always initialized here? When I add some printouts and compare a failing and passing build I see that when it fails RemainingBitsInField is 2767481344 which looks a bit odd. https://github.com/llvm/llvm-project/pull/130182 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits