[PATCH] D34024: [OpenCL] Diagnose scoped address-space qualified variables
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 19 10:16:59 PDT 2017
Anastasia accepted this revision.
Anastasia added a comment.
This revision is now accepted and ready to land.
LGTM! Small comment in the test can be addressed in commit!
================
Comment at: test/SemaOpenCL/storageclass.cl:52
+kernel void invalidScope() {
+ if (true) {
+ local int lInt; // expected-error {{variables in the local address space can only be declared in the outermost scope of a kernel function}}
----------------
I would just move this into `foo` as it tests similar functionality already.
https://reviews.llvm.org/D34024
More information about the cfe-commits
mailing list