Skip to content

Fix an ICE when translating if loop {} {}#22527

Merged
huonw merged 1 commit into
rust-lang:masterfrom
dotdash:if-loop
Feb 22, 2015
Merged

Fix an ICE when translating if loop {} {}#22527
huonw merged 1 commit into
rust-lang:masterfrom
dotdash:if-loop

Conversation

@dotdash

@dotdash dotdash commented Feb 19, 2015

Copy link
Copy Markdown
Contributor

In if loop {} {}, the if is actually unreachable, but we didn't
handle that correctly and when trying to translate the if we tried to
branch on the "return value" of the loop expression, which is not an
i1 and therefore triggered an LLVM assertion.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @eddyb

(rust_highfive has picked a reviewer for you, use r? to override)

@huonw

huonw commented Feb 19, 2015

Copy link
Copy Markdown
Contributor

@bors r+ a903 rollup

@dotdash

dotdash commented Feb 19, 2015

Copy link
Copy Markdown
Contributor Author

@bors r-

@dotdash

dotdash commented Feb 19, 2015

Copy link
Copy Markdown
Contributor Author

@bors r=huonw 4e1a318

@dotdash

dotdash commented Feb 19, 2015

Copy link
Copy Markdown
Contributor Author

@bors r-

@dotdash

dotdash commented Feb 19, 2015

Copy link
Copy Markdown
Contributor Author

@bors r=huonw f6af877

In `if loop {} {}`, the `if` is actually unreachable, but we didn't
handle that correctly and when trying to translate the `if` we tried to
branch on the "return value" of the loop expression, which is not an
`i1` and therefore triggered an LLVM assertion.
@dotdash

dotdash commented Feb 19, 2015

Copy link
Copy Markdown
Contributor Author

@bors r=huonw 07c0faa

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 19, 2015
 In `if loop {} {}`, the `if` is actually unreachable, but we didn't
handle that correctly and when trying to translate the `if` we tried to
branch on the \"return value\" of the loop expression, which is not an
`i1` and therefore triggered an LLVM assertion.
Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 21, 2015
 In `if loop {} {}`, the `if` is actually unreachable, but we didn't
handle that correctly and when trying to translate the `if` we tried to
branch on the \"return value\" of the loop expression, which is not an
`i1` and therefore triggered an LLVM assertion.
@huonw huonw merged commit 07c0faa into rust-lang:master Feb 22, 2015
@dotdash dotdash deleted the if-loop branch March 1, 2015 19:21
lnicola pushed a commit to lnicola/rust that referenced this pull request Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants