summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/IfConversion.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-04-20 22:53:57 +0000
committerEric Fiselier <eric@efcs.ca>2017-04-20 22:53:57 +0000
commit4b2c8f75a114818cf377c8b16cb0796e015e1b2d (patch)
tree767addb0a1825eb5e7166acc2cb59b2706963124 /llvm/lib/CodeGen/IfConversion.cpp
parente327f098329f0dd1bd7f7dc0a29c111cf08eb9cd (diff)
downloadbcm5719-llvm-4b2c8f75a114818cf377c8b16cb0796e015e1b2d.tar.gz
bcm5719-llvm-4b2c8f75a114818cf377c8b16cb0796e015e1b2d.zip
Add __CLANG_ATOMIC_<TYPE>_LOCK_FREE macros for use in MSVC compatibility mode.
Summary: Libc++ currently implements the `ATOMIC_<TYPE>_LOCK_FREE` macros using the `__GCC_ATOMIC_<TYPE>_LOCK_FREE` macros. However these are not available when MSVC compatibility is enabled even though C11 `_Atomic` is. This prevents libc++ from correctly implementing `ATOMIC_<TYPE>_LOCK_FREE`. This patch adds an alternative spelling `__CLANG_ATOMIC_<TYPE>_LOCK_FREE` that is enabled with `-fms-compatibility`. Reviewers: rsmith, aaron.ballman, majnemer, zturner, compnerd, jfb, rnk Reviewed By: rsmith Subscribers: BillyONeal, smeenai, jfb, cfe-commits, dschuff Differential Revision: https://reviews.llvm.org/D32265 llvm-svn: 300914
Diffstat (limited to 'llvm/lib/CodeGen/IfConversion.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud