================
@@ -79,6 +79,25 @@ struct CIRRecordLowering final {
         cir::ArrayType::get(cirGenTypes.convertTypeForMem(field->getType()), 
0),
         cir::RecordMemberKind::BitField);
   }
+
+  /// An access unit can be narrower than the types its bit-fields were
+  /// declared with, so the unit's extent does not say how far the declared
+  /// data runs.  This member carries the difference: the declared extent ends
+  /// \p excessInBits past \p offset.  It holds no storage, taking the same
+  /// zero-length-array shape as a zero-width bit-field so the record layout
+  /// walks skip it.
----------------
erichkeane wrote:

Can we get a quick example here?  I'm still not getting th is.

https://github.com/llvm/llvm-project/pull/220069
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to