]> git.lizzy.rs Git - rust.git/commit
Fix volatile / atomic ops on bools and small aggregates
authorBjörn Steinbrink <bsteinbr@gmail.com>
Fri, 20 Mar 2015 23:21:38 +0000 (00:21 +0100)
committerBjörn Steinbrink <bsteinbr@gmail.com>
Sat, 21 Mar 2015 09:46:52 +0000 (10:46 +0100)
commitd4ca1cffce6f948e190c5910f5b08771bf30ca59
tree72d1ce43994158d8a7e016e145462f170e43423f
parentecdf792d1dda479d04781e5750737aa6cc574119
Fix volatile / atomic ops on bools and small aggregates

Boolean values and small aggregates have a different type in
args/allocas than in SSA values but the intrinsics for volatile and
atomic ops were missing the necessary casts to handle that.

Fixes #23550
src/librustc_trans/trans/base.rs
src/librustc_trans/trans/intrinsic.rs
src/test/run-pass/issue-23550.rs [new file with mode: 0644]