]> granicus.if.org Git - clang/commit
[Windows] Remove functions in intrin.h that are defined in Builtin.def.
authorJustin Lebar <jlebar@google.com>
Thu, 5 Jan 2017 16:51:37 +0000 (16:51 +0000)
committerJustin Lebar <jlebar@google.com>
Thu, 5 Jan 2017 16:51:37 +0000 (16:51 +0000)
commit76b76dc49910be865a9b0e6735008f80dd73c6e4
tree0229006c142d331c84b2b30253e13976404cb6d2
parent68c2f4e5aad7a32eec0b67904723f372b79b19d6
[Windows] Remove functions in intrin.h that are defined in Builtin.def.

Summary:
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.)

Reviewers: rnk

Subscribers: cfe-commits, echristo

Differential Revision: https://reviews.llvm.org/D28317

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291128 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/intrin.h