[clang] [clang]: support std::meta::info for primitive types (PR #190356)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 3 09:13:17 PDT 2026
================
@@ -6158,6 +6085,9 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D,
if (getLangOpts().OpenCL && ASTTy->isSamplerT())
return;
+ if (getLangOpts().Reflection && ASTTy->isMetaInfoType())
----------------
efriedma-quic wrote:
This shouldn't be necessary if the linkage of the variable in question is computed correctly.
https://github.com/llvm/llvm-project/pull/190356
More information about the cfe-commits
mailing list