[PATCH] D31404: [OpenCL] Allow alloca return non-zero private pointer

Tony Tye via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 3 09:18:39 PDT 2017


t-tye added inline comments.


================
Comment at: lib/Sema/SemaExprCXX.cpp:2055
+      << AllocType.getUnqualifiedType()
+      << AllocType.getQualifiers().getAddressSpacePrintValue();
   else if (getLangOpts().ObjCAutoRefCount) {
----------------
Would suggest renaming getAddressSpacePrintValue to getAddressSpaceAttributePrintValue since it only deals with address spaces coming from the` __attribute__((address_space(n)))`.


https://reviews.llvm.org/D31404





More information about the cfe-commits mailing list