[libcxx-commits] [clang] [libcxx] [clang] Add builtin to clear padding bytes (prework for P0528R3) (PR #75371)
Will Hawkins via libcxx-commits
libcxx-commits at lists.llvm.org
Thu May 7 21:01:36 PDT 2026
================
@@ -2698,6 +2700,326 @@ RValue CodeGenFunction::emitStdcFirstBit(const CallExpr *E, Intrinsic::ID IntID,
return RValue::get(Result);
}
+namespace {
+
+// PaddingClearer is a utility class that clears padding bits in a
+// c/c++ type. It traverses the type recursively, collecting occupied
+// bit intervals, and then compute the padding intervals.
----------------
hawkinsw wrote:
```suggestion
// bit intervals, and then computes the padding intervals.
```
https://github.com/llvm/llvm-project/pull/75371
More information about the libcxx-commits
mailing list