[clang] [CLANG-CL] ignores wpadded (PR #130182)

Mikael Holmén via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 3 05:05:36 PDT 2025


================
@@ -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


More information about the cfe-commits mailing list