================ @@ -2706,14 +2700,16 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, ParamValue Arg, bool DoStore = false; bool IsScalar = hasScalarEvaluationKind(Ty); bool UseIndirectDebugAddress = false; + LangAS DestLangAS = getLangOpts().OpenCL ? LangAS::opencl_private ---------------- arsenm wrote:
This shouldn't be modal on the language. Certainly not on OpenMP. The main sticking point in all of this stuff is that OpenCL was implemented incorrectly. OpenCL 1.x changes the behavior of deep types, instead of implicitly adding __private qualifiers like it should have https://github.com/llvm/llvm-project/pull/181256 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
