[OpenCL] Do not enforce ASTContext for OCL2Qual
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Mon, 8 Feb 2021 10:56:39 +0000 (10:56 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Mon, 8 Feb 2021 10:56:39 +0000 (10:56 +0000)
commita016374d079b0d8f37af052ced13f9850f1049fa
treef28059274a0459071a1b460e3ae64aa840eb8b27
parentd813c37fc7ce507e008bdee1fc1726a57bc76df5
[OpenCL] Do not enforce ASTContext for OCL2Qual

Do not enforce that the expression to obtain the QualType for an
OpenCL type starts with an ASTContext.  This adds the required
flexibility for handling the remaining missing argument types such as
enums.

Differential Revision: https://reviews.llvm.org/D96050
clang/lib/Sema/OpenCLBuiltins.td
clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp