]> granicus.if.org Git - clang/commit
[OpenCL] Fix diagnosing enqueue_kernel call with too few args
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Thu, 29 Aug 2019 10:21:06 +0000 (10:21 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Thu, 29 Aug 2019 10:21:06 +0000 (10:21 +0000)
commitf001f2208961f12d3378620b7e6efd9471eb5732
treea734b0d0c847230f490be791d1e852fa48e2f51e
parentca0fc1ec65b232fbfed974a4dee9677190814a97
[OpenCL] Fix diagnosing enqueue_kernel call with too few args

The err_typecheck_call_too_few_args diagnostic takes arguments, but
none were provided causing clang to crash when attempting to diagnose
an enqueue_kernel call with too few arguments.

Fixes llvm.org/PR42045

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370322 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/SemaOpenCL/cl20-device-side-enqueue.cl