summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
diff options
context:
space:
mode:
authorJF Bastien <jfbastien@apple.com>2018-08-02 17:35:46 +0000
committerJF Bastien <jfbastien@apple.com>2018-08-02 17:35:46 +0000
commitb4b1f59869b1045258787f5a138f9710859cfe95 (patch)
treecd686295a44e19ed48ee559c2615a0030a3dfe19 /llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
parentae67218989af1714e709146458edb5932bccf740 (diff)
downloadbcm5719-llvm-b4b1f59869b1045258787f5a138f9710859cfe95.tar.gz
bcm5719-llvm-b4b1f59869b1045258787f5a138f9710859cfe95.zip
__c11_atomic_load's _Atomic can be const
Summary: C++11 onwards specs the non-member functions atomic_load and atomic_load_explicit as taking the atomic<T> by const (potentially volatile) pointer. C11, in its infinite wisdom, decided to drop the const, and C17 will fix this with DR459 (the current draft forgot to fix B.16, but that’s not the normative part). clang’s lib/Headers/stdatomic.h implements these as #define to the __c11_* equivalent, which are builtins with custom typecheck. Fix the typecheck. D47613 takes care of the libc++ side. Discussion: http://lists.llvm.org/pipermail/cfe-dev/2018-May/058129.html <rdar://problem/27426936> Reviewers: rsmith Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D47618 llvm-svn: 338743
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud