[PATCH] D57390: OpenCL: Don't promote vector args to printf

2019-01-29 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/AST/FormatString.h:70 AsShort, // 'h' +AsInt,// 'hl' (OpenCL float/int vector element) AsLong, // 'l' I think giving this a weird name like `AsShortLong` might help make

[PATCH] D57390: OpenCL: Don't promote vector args to printf

2019-01-29 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm created this revision. arsenm added reviewers: rjmccall, Anastasia. Herald added subscribers: yaxunl, wdng. This reverts commit r348083. This was based on misreading the spec for printf specifiers. Start respecting the length modifier for vectors. The warnings are still