================ @@ -1579,7 +1579,7 @@ NamedDecl *Sema::getCurFunctionOrMethodDecl() const { } LangAS Sema::getDefaultCXXMethodAddrSpace() const { - if (getLangOpts().OpenCL) + if (getLangOpts().OpenCL || getLangOpts().OpenCLGenericAddressSpace) ---------------- arsenm wrote:
I think this whole thing is just working around a defect in how OpenCL was implemented. There should be no difference between generic and default address space https://github.com/llvm/llvm-project/pull/115777 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits