As mentioned in http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20190708/278270.html, the pipe types are not properly mangled on Windows. C:\b\slave\clang-x64-windows-msvc\build\llvm.src\tools\clang\test\CodeGenOpenCL\pipe_builtin.cl:9:1: error: cannot mangle this OpenCL pipe type yet void test1(read_only pipe int p, global int *ptr) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. It's unlikely related to D64074, which added the test that triggered the bug elsewhere: unlike in C mode, in C++ mode we are mangling user-defined functions.
See also https://reviews.llvm.org/rC365557
FYI this is also an issue for OpenCL C with overloadable attribute used to declare BIFs.