[clang] [clang]: support std::meta::info for primitive types (PR #190356)

Daniel M. Katz via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 4 08:45:26 PDT 2026


================
@@ -126,6 +126,8 @@ TargetInfo::TargetInfo(const llvm::Triple &T) : Triple(T) {
   LongDoubleAlign = 64;
   Float128Align = 128;
   Ibm128Align = 128;
+  MetaInfoWidth = 64;
+  MetaInfoAlign = 64;
----------------
katzdm wrote:

Yeah - I mean, you _can_ observe it (e.g., via `size_of(^^info)`, `alignment_of(^^info)`), but it's not intended to be a meaningful result.

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


More information about the cfe-commits mailing list