-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
LLVM ERROR compiling Clap on 1.17.0 Nightly #40214
Comments
Only happens with |
First bad: |
Note that while the error does not occur when everything is compiled in debug mode, it does occur when clap itself is compiled with |
My bad! It is us who are generating bad IR! |
@nagisa: This also fails with LLVM 4.0 |
Minimal-ish reproducer: pub fn name(c: char) -> char {
while let Some(c) = Some('[') {
break;
}
c
} Another interesting case is while let Some(c) = Some('[') {
}
c Which ICEs:
This points pretty squarely on the normalize breaks PR. |
cc @cramertj |
cc me |
It reproduces with the nightly I updated to yesterday so probably not?
…On Mar 10, 2017 01:47, "Taylor Cramer" ***@***.***> wrote:
Is this a dup of #40235 <#40235>?
(Fixed in #40242 <#40242>)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40214 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AApc0tjSOmeva9iAOk1HnV39gfK8cW92ks5rkI9xgaJpZM4MRXTG>
.
|
Reproduced, rather. I recommend trying to re-reproduce. |
Seems to be fixed in master, so all we need is a nightly release (our current is from 03-03) |
That was what I found, too. Sorry, forgot to post my results. |
#40214 (comment) does not reproduce on the current nightly. closing! |
As reported here:
https://users.rust-lang.org/t/mandel-rust-v0-4/7481/3
Compiling this little project:
https://github.com/willi-kappler/mandel-rust
On x86_64-pc-windows-gnu, rustc 1.17.0-nightly, 691eba1 2017-03-01:
Instruction does not dominate all uses!
%27 = load i32, i32* %26, !range !2
%71 = icmp eq i32 %27, 60
LLVM ERROR: Broken function found, compilation aborted!
error: Could not compile
clap
.Further notes:
The text was updated successfully, but these errors were encountered: