[all-commits] [llvm/llvm-project] bd46a5: [OpenCL] Reject block arguments

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Mon Jun 29 06:14:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bd46a56474d3b27a4fb520503d5714e23097d495
      https://github.com/llvm/llvm-project/commit/bd46a56474d3b27a4fb520503d5714e23097d495
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2020-06-29 (Mon, 29 Jun 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaType.cpp
    M clang/test/CodeGenOpenCL/blocks.cl
    M clang/test/Frontend/opencl.cl
    M clang/test/SemaOpenCL/invalid-block.cl

  Log Message:
  -----------
  [OpenCL] Reject block arguments

OpenCL 2.0 does not allow block arguments, primarily because it is
difficult to support function pointers on the various architectures
that OpenCL targets.  Clang was still accepting them.

Rename and reuse the `err_opencl_half_param` diagnostic.

Fixes PR46324.

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




More information about the All-commits mailing list