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:/
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
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