[PATCH] D28317: [Windows] Remove functions in intrin.h that are defined in Builtin.def.
Justin Lebar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 4 13:53:01 PST 2017
jlebar created this revision.
jlebar added a reviewer: rnk.
jlebar added subscribers: echristo, cfe-commits.
These duplicate declarations cause a problem for CUDA compiles on
Windows. All implicitly-defined functions are host+device, and this
applies to the declarations in Builtin.def. But then when we see the
declarations in intrin.h, they have no attributes, so are host-only
functions. This is an error.
(A better fix might be to make these builtins host-only, but that is a
much bigger change.)
https://reviews.llvm.org/D28317
Files:
clang/lib/Headers/intrin.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28317.83124.patch
Type: text/x-patch
Size: 8074 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170104/4a5ad810/attachment-0001.bin>
More information about the cfe-commits
mailing list