]> granicus.if.org Git - clang/commit
[OpenCL] Diagnose scoped address-space qualified variables
authorAnastasia Stulova <anastasia.stulova@arm.com>
Tue, 20 Jun 2017 14:50:45 +0000 (14:50 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Tue, 20 Jun 2017 14:50:45 +0000 (14:50 +0000)
commit65043f330617de8cc3740da0448c7e12110589b0
tree4480a877e28b7e7a275063bdd74b7e0d6be6eef6
parent7a2305ca4dfb7a94e5e524ed034aeb3768d8bf9a
[OpenCL] Diagnose scoped address-space qualified variables

Produce an error if variables qualified with a local or
a constant address space are not declared in the outermost
scope of a kernel.

Patch by Simon Perretta.

Differential Revision: https://reviews.llvm.org/D34024

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305798 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/SemaOpenCL/storageclass.cl