Refactor err_opencl_enqueue_kernel_expected_type so that other builtins can use the same diagnostic.
Do you have another built-in in mind which can use this diagnostic message?
If so, it would make sense to re-use it in the same patch.
This is split off from https://reviews.llvm.org/D33945, which I will be rebasing/re-uploading once this patch is committed.
I see. Thanks for clarification.
No other comments from my side.