]> granicus.if.org Git - clang/commit
OpenCL: if double precision floating point constant encountered
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 11 Mar 2011 19:24:59 +0000 (19:24 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 11 Mar 2011 19:24:59 +0000 (19:24 +0000)
commitf4f7cb814f8537606754b9eb8848094196e73214
treef99eb6f1159e410506632bec2b04447e3119f2e3
parentf4e3cfbe8abd124be6341ef5d714819b4fbd9082
OpenCL: if double precision floating point constant encountered
without cl_khr_fp64, warn and cast to single precision

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127476 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/SemaOpenCL/extension-fp64.cl