[PATCH] D34024: [OpenCL] Diagnose scoped address-space qualified variables

2017-06-20 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL305798: [OpenCL] Diagnose scoped address-space qualified variables (authored by stulova). Changed prior to commit: https://reviews.llvm.org/D34024?vs=101872&id=103207#toc Repository: rL LLVM https:/

[PATCH] D34024: [OpenCL] Diagnose scoped address-space qualified variables

2017-06-19 Thread Anastasia Stulova via Phabricator via cfe-commits
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 l

[PATCH] D34024: [OpenCL] Diagnose scoped address-space qualified variables

2017-06-08 Thread Sven van Haastregt via Phabricator via cfe-commits
svenvh created this revision. Variables qualified with the local or const address space may only be declared in the outermost scope of a kernel. Patch by Simon Perretta. https://reviews.llvm.org/D34024 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp test/SemaOpenC