This is an archive of the discontinued LLVM Phabricator instance.

Fix an alignment error in `llvm::expandAtomicRMWToCmpXchg` without breaking the build where X86 isn't enabled.
ClosedPublic

Authored by DiamondLovesYou on Aug 6 2015, 8:56 AM.

Details

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.

Diff Detail

Repository
rL LLVM

Event Timeline

DiamondLovesYou retitled this revision from to Fix an alignment error in `llvm::expandAtomicRMWToCmpXchg` without breaking the build where X86 isn't enabled..
DiamondLovesYou updated this object.
DiamondLovesYou added reviewers: jfb, rengolin.
DiamondLovesYou set the repository for this revision to rL LLVM.
DiamondLovesYou added a subscriber: llvm-commits.
jfb accepted this revision.Aug 6 2015, 9:07 AM
jfb edited edge metadata.

lgtm, sorry folks for not seeing the breakage earlier.

This revision is now accepted and ready to land.Aug 6 2015, 9:07 AM
This revision was automatically updated to reflect the committed changes.