diff options
author | Tanya Lattner <tonic@nondot.org> | 2013-04-04 23:36:11 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2013-04-04 23:36:11 +0000 |
commit | 98bb78885c36800d23fe247f10131bc6dcb30581 (patch) | |
tree | 824e7ca28f591606dd144f4674fbd2e544da61ba /include | |
parent | b11a9086ebaf8e081daa8a6cd94ea99c97c027d2 (diff) |
Add an error to check that all program scope variables are in the constant address space in OpenCL.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index c4815cd7ea..fe8233b053 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -6205,7 +6205,9 @@ def err_sampler_argument_required : Error< "sampler_t variable required - got %0">; def err_wrong_sampler_addressspace: Error< "sampler type cannot be used with the __local and __global address space qualifiers">; - +def err_opencl_global_invalid_addr_space : Error< + "global variables must have a constant address space qualifier">; + // OpenMP support. def err_omp_expected_var_arg_suggest : Error< "%0 is not a global variable, static local variable or static data member%select{|; did you mean %2?}1">; |