Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uptruncate i8-s to i1-s when loading constants #32032
Conversation
rust-highfive
assigned
eddyb
Mar 3, 2016
eddyb
reviewed
Mar 3, 2016
| llvm::LLVMGetInitializer(v) | ||
| let d = unsafe { llvm::LLVMGetInitializer(v) }; | ||
| if t.is_bool() { | ||
| unsafe { llvm::LLVMConstTrunc(d, Type::i1(cx).to_ref()) } |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
arielb1
Mar 3, 2016
Author
Contributor
This is a variant of load_ty that uses the const llvm functions.
This comment has been minimized.
This comment has been minimized.
eddyb
reviewed
Mar 3, 2016
| @@ -0,0 +1,9 @@ | |||
| const ERROR_CONST: bool = true; | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
arielb1
force-pushed the
arielb1:load-const
branch
from
9ee4b30
to
cf29344
Mar 3, 2016
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
Manishearth
added a commit
to Manishearth/rust
that referenced
this pull request
Mar 4, 2016
bors
added a commit
that referenced
this pull request
Mar 4, 2016
bors
added a commit
that referenced
this pull request
Mar 4, 2016
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Mar 4, 2016
This comment has been minimized.
This comment has been minimized.
bors
merged commit cf29344
into
rust-lang:master
Mar 4, 2016
arielb1
added
beta-nominated
T-compiler
labels
Mar 4, 2016
This comment has been minimized.
This comment has been minimized.
|
nominating for beta since this fixes a regression. |
nikomatsakis
added
the
beta-accepted
label
Mar 10, 2016
alexcrichton
referenced this pull request
Mar 16, 2016
Merged
Merge in beta-accepted into beta #32291
brson
removed
the
beta-nominated
label
Mar 22, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
arielb1 commentedMar 3, 2016
Fixes #30891
r? @eddyb