[PATCH] D27917: [OpenCL] Improve diagnostics for double type

Egor Churaev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 26 02:14:06 PST 2017


echuraev added a comment.

This diagnostic was added in this commit: https://reviews.llvm.org/rL289979
It is something like that: "use of undeclared identifier 'double2'; did you mean 'double'?"
This message isn't clear enough and it is difficult to understand that I forgot to enable cl_khr_fp64 extension. May be it will be better to change this diagnostic message to something like that: "use of type 'double2' (vector of 2 'double' values) requires cl_khr_fp64 extension to be enabled"


https://reviews.llvm.org/D27917





More information about the cfe-commits mailing list