diff options
author | John McCall <rjmccall@apple.com> | 2013-02-12 01:29:43 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2013-02-12 01:29:43 +0000 |
commit | 9dd74c5504c743c96ea3a1d691d6a75ec3a98147 (patch) | |
tree | f1121c7876d52867edccb389dcfba07bb3f90526 /include/clang/Basic | |
parent | c2808e705eb8a1a825a5807cabc16d55052c31bd (diff) |
Diagnose loads of 'half' l-values in OpenCL.
Patch by Joey Gouly!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index b2f28d561b..44bcf632a6 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -420,12 +420,9 @@ def err_object_cannot_be_passed_returned_by_value : Error< "; did you forget * in %1?">; def err_parameters_retval_cannot_have_fp16_type : Error< "%select{parameters|function return value}0 cannot have __fp16 type; did you forget * ?">; -def err_opencl_half_dereferencing : Error< - "dereferencing pointer of type %0 is not allowed">; -def err_opencl_half_subscript : Error< - "subscript to array of type %0 is not allowed">; +def err_opencl_half_load_store : Error< + "%select{loading directly from|assigning directly to}0 pointer to type %1 is not allowed">; def err_opencl_cast_to_half : Error<"casting to type %0 is not allowed">; -def err_opencl_cast_from_half : Error<"casting from type %0 is not allowed">; def err_opencl_half_declaration : Error< "declaring variable of type %0 is not allowed">; def err_opencl_half_argument : Error< |