[clang] [CIR] Add basic support for operator new (PR #145802)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 26 06:46:37 PDT 2025


================
@@ -66,6 +66,16 @@ struct CIRGenTypeCache {
     unsigned char PointerSizeInBytes;
   };
 
+  /// The size and alignment of size_t.
+  union {
+    unsigned char SizeSizeInBytes; // sizeof(size_t)
----------------
erichkeane wrote:

Is this used?  Also, fact that this and the one above are unions is odd, right?  Do we ONLY need pointer OR alignment?

https://github.com/llvm/llvm-project/pull/145802


More information about the cfe-commits mailing list