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

Daniel M. Katz via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 13 17:06:55 PDT 2026


================
@@ -6158,6 +6085,9 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D,
   if (getLangOpts().OpenCL && ASTTy->isSamplerT())
     return;
 
+  if (getLangOpts().Reflection && ASTTy->isMetaInfoType())
----------------
katzdm wrote:

I think that emitting a zeroed-out constant, and dealing with the consteval-only aspect later, would be quite reasonable. If we can give a warning, all the better.

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


More information about the cfe-commits mailing list