aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorMichael Spencer <bigcheesegs@gmail.com>2020-03-05 17:56:13 -0800
committerMichael Spencer <bigcheesegs@gmail.com>2020-03-06 13:48:09 -0800
commit16af23fae8ad2949048e0fc34cf9114dfbe4742a (patch)
treeb0b31ac2f43cc2f400220f731a5d11ed91192524 /llvm/lib/CodeGen/MachineFunction.cpp
parentc3de1d0b1f99926f4a2665756b29b2d35a8359b8 (diff)
downloadllvm-16af23fae8ad2949048e0fc34cf9114dfbe4742a.zip
llvm-16af23fae8ad2949048e0fc34cf9114dfbe4742a.tar.gz
llvm-16af23fae8ad2949048e0fc34cf9114dfbe4742a.tar.bz2
[clang][Headers] Use __has_builtin instead of _MSC_VER.
arm_acle.h relied on `_MSC_VER` to determine if a given function was already defined as a builtin. This was incorrect because `-fms-extensions` enables these builtins, but is not responsible for defining `_MSC_VER` on any target. The next closest thing is `_MSC_EXTENSIONS`, which is only defined on Windows targets, but even this is suboptimal. What this conditional is actually trying to determine is if the given functions are defined as builtins, so just check that directly. I also attempted to do this for `__nop`, but in that case intrin.h, which is only includable if `_MSC_VER` is defined, has its own definition. So in that case `_MSC_VER` is correct. Differential Revision: https://reviews.llvm.org/D75719 rdar://60102353
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions