diff options
author | Tanya Lattner <tonic@nondot.org> | 2013-04-05 20:14:50 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2013-04-05 20:14:50 +0000 |
commit | 8aa86d1155fb99e34fd084d83da3345b1ec2b2e4 (patch) | |
tree | 71dad425d0215af9c70fb9037e51327d0e017e75 /include | |
parent | 5238e40f6ea6346b6bc1505e4975c2c4ab7fde09 (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@178906 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">; |