This is an archive of the discontinued LLVM Phabricator instance.

Fix deduction of __atomic_load's parameter types.
ClosedPublic

Authored by EricWF on Oct 3 2015, 10:35 PM.

Details

Summary

atomic_load's allows it's first argument to be a pointer to a const type. However the second argument is an output parameter and must be a pointer to non-const.
This patch fixes the signature of
atomic_load generated by clang so that it respects the above requirements.

Diff Detail

Event Timeline

EricWF updated this revision to Diff 36456.Oct 3 2015, 10:35 PM
EricWF retitled this revision from to Fix deduction of __atomic_load's parameter types..
EricWF updated this object.
EricWF added reviewers: majnemer, rsmith.
EricWF added a subscriber: cfe-commits.
majnemer accepted this revision.Jan 28 2016, 12:55 PM
majnemer edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jan 28 2016, 12:56 PM
EricWF closed this revision.Mar 30 2016, 4:45 PM