Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix volatile / atomic ops on bools and small aggregates #23570

Merged
merged 1 commit into from
Mar 23, 2015

Conversation

dotdash
Copy link
Contributor

@dotdash dotdash commented Mar 20, 2015

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

@rust-highfive
Copy link
Collaborator

r? @pcwalton

(rust_highfive has picked a reviewer for you, use r? to override)

@dotdash dotdash changed the title Fix volatile / atomic ops on bools and small FCAs Fix volatile / atomic ops on bools and small aggregates Mar 20, 2015
@dotdash dotdash force-pushed the issue23550 branch 2 times, most recently from fdc53ca to 47f8724 Compare March 20, 2015 23:57
}

#[rustc_error]
fn main() {} //~ ERROR compilation successful
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this a compile-fail test and not run-pass?

@eddyb eddyb assigned eddyb and unassigned pcwalton Mar 21, 2015
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 rust-lang#23550
@dotdash
Copy link
Contributor Author

dotdash commented Mar 21, 2015

Moved the test to run-pass.

@eddyb
Copy link
Member

eddyb commented Mar 21, 2015

@bors r+

@bors
Copy link
Contributor

bors commented Mar 21, 2015

📌 Commit d4ca1cf has been approved by eddyb

bors added a commit that referenced this pull request Mar 21, 2015
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
@bors
Copy link
Contributor

bors commented Mar 21, 2015

⌛ Testing commit d4ca1cf with merge aae16d4...

@bors
Copy link
Contributor

bors commented Mar 21, 2015

💔 Test failed - auto-linux-32-opt

@alexcrichton
Copy link
Member

@bors: retry

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 21, 2015
 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 rust-lang#23550
@bors
Copy link
Contributor

bors commented Mar 21, 2015

@bors
Copy link
Contributor

bors commented Mar 21, 2015

💔 Test failed - auto-mac-64-nopt-t

@alexcrichton
Copy link
Member

@bors: retry

On Sat, Mar 21, 2015 at 4:10 PM, bors [email protected] wrote:

[image: 💔] Test failed - auto-mac-64-nopt-t
http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/4175


Reply to this email directly or view it on GitHub
#23570 (comment).

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 22, 2015
 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 rust-lang#23550
@bors
Copy link
Contributor

bors commented Mar 23, 2015

⌛ Testing commit d4ca1cf with merge 4cf4c24...

@bors
Copy link
Contributor

bors commented Mar 23, 2015

💔 Test failed - auto-mac-64-nopt-t

@alexcrichton
Copy link
Member

@bors: retry

On Mon, Mar 23, 2015 at 12:58 AM, bors [email protected] wrote:

[image: 💔] Test failed - auto-mac-64-nopt-t
http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/4195


Reply to this email directly or view it on GitHub
#23570 (comment).

@bors bors merged commit d4ca1cf into rust-lang:master Mar 23, 2015
@dotdash dotdash deleted the issue23550 branch May 8, 2015 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

volatile_load + newtype = LLVM assertion
6 participants