diff --git a/clang/lib/Sema/OpenCLBuiltins.td b/clang/lib/Sema/OpenCLBuiltins.td index 2ea70ae3234d9..03235985ab42f 100644 --- a/clang/lib/Sema/OpenCLBuiltins.td +++ b/clang/lib/Sema/OpenCLBuiltins.td @@ -1444,11 +1444,11 @@ let Extension = FuncExtKhrMipmapImage in { } foreach name = ["read_imagei"] in { def : Builtin, ImageType, Sampler, VectorType, VectorType, VectorType], Attr.Pure>; - def : Builtin, ImageType, Sampler, VectorType, Float], Attr.Pure>; + def : Builtin, ImageType, Sampler, VectorType, Float], Attr.Pure>; } foreach name = ["read_imageui"] in { def : Builtin, ImageType, Sampler, VectorType, VectorType, VectorType], Attr.Pure>; - def : Builtin, ImageType, Sampler, VectorType, Float], Attr.Pure>; + def : Builtin, ImageType, Sampler, VectorType, Float], Attr.Pure>; } } foreach imgTy = [Image1dArray] in { @@ -1481,8 +1481,8 @@ let Extension = FuncExtKhrMipmapImage in { } foreach imgTy = [Image2dArrayDepth] in { foreach name = ["read_imagef"] in { - def : Builtin, ImageType, Sampler, VectorType, Float], Attr.Pure>; - def : Builtin, ImageType, Sampler, VectorType, VectorType, VectorType], Attr.Pure>; + def : Builtin, Sampler, VectorType, Float], Attr.Pure>; + def : Builtin, Sampler, VectorType, VectorType, VectorType], Attr.Pure>; } } }