commit | 972533b0a146a8af51174bd06e1b706b74f816e8 | [log] [tgz] |
---|---|---|
author | Richard Diamond <wichard@vitalitystudios.com> | Thu Aug 06 16:55:03 2015 +0000 |
committer | Richard Diamond <wichard@vitalitystudios.com> | Thu Aug 06 16:55:03 2015 +0000 |
tree | cff921dbbc87b70a5519bd27bb33773651465df4 | |
parent | 3c4339b0dcf789193b23b6fde28e1e22b8c7455e [diff] |
Fix an alignment error in `llvm::expandAtomicRMWToCmpXchg` without breaking the build where X86 isn't enabled. Summary: Divide the primitive size in bits by eight so the initial load's alignment is in bytes as expected. Tested with the included unit test. Reviewers: rengolin, jfb Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11804 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244229 91177308-0d34-0410-b5e6-96231b3b80d8