[PATCH] D46049: [OpenCL] Add constant address space to __func__ in AST

Alexey Bader via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 26 10:38:09 PDT 2018


bader accepted this revision.
bader added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/Sema/SemaExpr.cpp:3056
+      if (LangOpts.OpenCL)
+        ResTy = Context.getAddrSpaceQualType(ResTy, LangAS::opencl_constant);
       ResTy = Context.getConstantArrayType(ResTy, LengthI, ArrayType::Normal,
----------------
Do we still need this?



https://reviews.llvm.org/D46049





More information about the cfe-commits mailing list