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 upLLVM ERROR compiling Clap on 1.17.0 Nightly #40214
Comments
alexcrichton
added
the
regression-from-stable-to-nightly
label
Mar 2, 2017
brson
added
T-compiler
P-high
I-nominated
labels
Mar 9, 2017
This comment has been minimized.
This comment has been minimized.
|
Only happens with |
This comment has been minimized.
This comment has been minimized.
|
First bad: |
This comment has been minimized.
This comment has been minimized.
|
Note that while the error does not occur when everything is compiled in debug mode, it does occur when clap itself is compiled with |
This comment has been minimized.
This comment has been minimized.
|
My bad! It is us who are generating bad IR! |
This comment has been minimized.
This comment has been minimized.
|
@nagisa: This also fails with LLVM 4.0 |
This comment has been minimized.
This comment has been minimized.
|
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('[') {
}
cWhich ICEs:
This points pretty squarely on the normalize breaks PR. |
This comment has been minimized.
This comment has been minimized.
|
cc @cramertj |
This comment has been minimized.
This comment has been minimized.
|
cc me |
nikomatsakis
self-assigned this
Mar 9, 2017
nikomatsakis
removed
the
I-nominated
label
Mar 9, 2017
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
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>
.
|
This comment has been minimized.
This comment has been minimized.
|
Reproduced, rather. I recommend trying to re-reproduce. |
This comment has been minimized.
This comment has been minimized.
nagisa
referenced this issue
Mar 11, 2017
Closed
LLVM ERROR: Broken function found, compilation aborted! #40438
This comment has been minimized.
This comment has been minimized.
|
Seems to be fixed in master, so all we need is a nightly release (our current is from 03-03) |
This comment has been minimized.
This comment has been minimized.
|
That was what I found, too. Sorry, forgot to post my results. |
This comment has been minimized.
This comment has been minimized.
|
#40214 (comment) does not reproduce on the current nightly. closing! |
leonardo-m commentedMar 2, 2017
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: