-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 promotion of MIR terminators #38833
Conversation
promotion of MIR terminators used to try to promote the destination it is trying to promote, leading to stack overflow. Fixes rust-lang#37991.
Hah, I'm glad I checked first, I finally had some time to spend on this (I'll go do #38074 instead). |
@bors r+ Nice rewrite! |
📌 Commit 99aa48d has been approved by |
After discussing in @rust-lang/compiler meeting, decided to approve for backport. Fixes a regression, minimal risk. |
@bors: p=1 This is a backport |
⌛ Testing commit 99aa48d with merge aa0c250... |
💔 Test failed - status-appveyor |
… On Thu, Jan 5, 2017 at 10:41 PM, bors ***@***.***> wrote:
💔 Test failed - status-appveyor
<https://ci.appveyor.com/project/rust-lang/rust/build/1.0.1422>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#38833 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAD95LIdjBmSEMd2AFOljiU07s2Y7RuBks5rPeICgaJpZM4LbLZ0>
.
|
⌛ Testing commit 99aa48d with merge 0728b71... |
fix promotion of MIR terminators promotion of MIR terminators used to try to promote the destination it is trying to promote, leading to stack overflow. Also clean up the code in `promote_temp` a bit to make it more understandable. Fixes #37991. cc @nikomatsakis r? @eddyb
☀️ Test successful - status-appveyor, status-travis |
@bors r- |
oh, never mind :) |
fix function arguments in constant promotion we can't create the target block until *after* we promote the arguments - otherwise the arguments will be promoted into the target block. oops. Fixes #38985. This is a regression introduced in the beta-nominated #38833, so beta-nominating this one too (sorry @brson). r? @eddyb
promotion of MIR terminators used to try to promote the destination it
is trying to promote, leading to stack overflow.
Also clean up the code in
promote_temp
a bit to make it more understandable.Fixes #37991.
cc @nikomatsakis
r? @eddyb