[all-commits] [llvm/llvm-project] 81e8b6: [OpenCL] Only declare _sat conversions for integer...
Sven van Haastregt via All-commits
all-commits at lists.llvm.org
Wed Feb 19 05:53:26 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 81e8b60b722e5494cb92b6b4ec03d4631028eece
https://github.com/llvm/llvm-project/commit/81e8b60b722e5494cb92b6b4ec03d4631028eece
Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
Date: 2020-02-19 (Wed, 19 Feb 2020)
Changed paths:
M clang/lib/Sema/OpenCLBuiltins.td
M clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl
Log Message:
-----------
[OpenCL] Only declare _sat conversions for integer types
The `-fdeclare-opencl-builtins` option was accepting saturated
conversions for non-integer types, which contradicts both the OpenCL
specification (v2.0 s6.2.3) and Clang's opencl-c.h file.
More information about the All-commits
mailing list