From 1331ad22c31fc2ed6890fa046c1e2333e369251b Mon Sep 17 00:00:00 2001 From: Sven van Haastregt Date: Fri, 8 Apr 2022 12:08:10 +0100 Subject: [PATCH] [OpenCL] Add generic addrspace guards for get_fence Align guards of these builtins with opencl-c.h. --- clang/lib/Sema/OpenCLBuiltins.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/OpenCLBuiltins.td b/clang/lib/Sema/OpenCLBuiltins.td index a57b744..b64b508 100644 --- a/clang/lib/Sema/OpenCLBuiltins.td +++ b/clang/lib/Sema/OpenCLBuiltins.td @@ -923,7 +923,7 @@ def : Builtin<"write_mem_fence", [Void, MemFenceFlags]>; // OpenCL v3.0 s6.15.10 - Address Space Qualifier Functions. // to_global, to_local, to_private are declared in Builtins.def. -let MinVersion = CL20 in { +let Extension = FuncExtOpenCLCGenericAddressSpace in { // The OpenCL 3.0 specification defines these with a "gentype" argument indicating any builtin // type or user-defined type, which cannot be represented currently. Hence we slightly diverge // by providing only the following overloads with a void pointer. -- 2.7.4