yaxunl added a comment. Sorry for the delay.
I feel forbidding user taking address of captured variable is too restrictive and make blocks less useful. A block is quite like a normal function with a generic pointer argument. Users take the responsibility to make sure the cast of a generic pointer to private or global address space is valid at runtime. I am more inclined to the alternative approach, i.e., assuming captures are located in the generic AS implicitly. https://reviews.llvm.org/D36410 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits