================
@@ -2685,6 +2685,8 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, 
ParamValue Arg,
     Arg.getAnyValue()->setName(D.getName());
 
   QualType Ty = D.getType();
+  assert((getLangOpts().OpenCL || Ty.getAddressSpace() == LangAS::Default) &&
----------------
vtjnash wrote:

If you have a downstream fork, you should check if you're setting this 
intentionally or unintentionally. I've got followup work to make sure that 
callers who set it intentionally get the behavior intended, so if you're 
setting it unintentionally, you should remove it, and if you're setting it 
intentionally, then https://github.com/llvm/llvm-project/pull/181256 will 
finally respect those intentions

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

Reply via email to