Skip to content
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

Always evaluate the expression in [expr; n] #23354

Closed
dotdash opened this issue Mar 14, 2015 · 2 comments
Closed

Always evaluate the expression in [expr; n] #23354

dotdash opened this issue Mar 14, 2015 · 2 comments
Assignees

Comments

@dotdash
Copy link
Contributor

dotdash commented Mar 14, 2015

Currently, [panic!(); 0] will panic, but let x = [panic!(); 0] will not, because the expression is not evaluated in that case.

@dotdash dotdash self-assigned this Mar 14, 2015
@rprichard
Copy link
Contributor

Also, let x = [panic!(); 2]; crashes the compiler. Maybe it's the same issue?

PHINode should have one entry for each predecessor of its parent basic block!
  %4 = phi i64 [ 0, %entry-block ], [ %5, %expr_repeat ]
LLVM ERROR: Broken function found, compilation aborted!

@dotdash
Copy link
Contributor Author

dotdash commented Mar 14, 2015

@rprichard Thanks for the reminder, #23365 fixes that as well.

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

No branches or pull requests

2 participants