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

I also feel like it should be an assert.

Emitting a diagnostic here would also be an option, but that doesn’t help if 
the variable is referenced somewhere, because we’ll probably then just crash 
because we attempt to reference a variable that we didn’t actually emit...

https://github.com/llvm/llvm-project/pull/190356
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to