Skip to content

truncate i8-s to i1-s when loading constants - #32032

Merged
bors merged 1 commit into
rust-lang:masterfrom
arielb1:load-const
Mar 4, 2016
Merged

truncate i8-s to i1-s when loading constants#32032
bors merged 1 commit into
rust-lang:masterfrom
arielb1:load-const

Conversation

@arielb1

Copy link
Copy Markdown
Contributor

Fixes#30891

r? @eddyb

Comment threadsrc/librustc_trans/trans/consts.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Isn't there something similar in base::load_ty, using LLVMGetInitializer?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

This is a variant of load_ty that uses the const llvm functions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nevermind, load_ty already handles this correctly via to_arg_ty.

@eddyb

eddyb commented Mar 3, 2016

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Mar 3, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit cf29344 has been approved by eddyb

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 4, 2016
@ManishearthManishearth mentioned this pull request Mar 4, 2016
@bors

bors commented Mar 4, 2016

Copy link
Copy Markdown
Collaborator

⌛ Testing commit cf29344 with merge c97524b...

bors added a commit that referenced this pull request Mar 4, 2016
@bors
bors merged commit cf29344 into rust-lang:masterMar 4, 2016
@arielb1arielb1 added beta-nominated Nominated for backporting to the compiler in the beta channel. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 4, 2016
@arielb1

Copy link
Copy Markdown
ContributorAuthor

nominating for beta since this fixes a regression.

@nikomatsakisnikomatsakis added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Mar 10, 2016
@brsonbrson removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Mar 22, 2016
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-acceptedAccepted for backporting to the compiler in the beta channel.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@arielb1@eddyb@bors@brson@nikomatsakis