[OpenCL] Allow taking address of functions as an extension.
authorAnastasia Stulova <anastasia.stulova@arm.com>
Wed, 24 Feb 2021 12:27:15 +0000 (12:27 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Wed, 24 Feb 2021 12:32:02 +0000 (12:32 +0000)
commitabbdb5639c70d167bd66cd62296927330782c3b4
treef4fa40103c3b852727fdeee9d1578a5e734fa6b8
parent2105912ee0b831d5141146b7700c1934c4185bd6
[OpenCL] Allow taking address of functions as an extension.

When '__cl_clang_function_pointers' extension is enabled
the parser should allow obtaining the function address.

This fixes PR49264!

Differential Revision: https://reviews.llvm.org/D97203
clang/lib/Parse/ParseExpr.cpp
clang/test/SemaOpenCL/func.cl