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

LLVM assert with "let c <- fail;" #949

Closed
jruderman opened this issue Sep 20, 2011 · 1 comment
Closed

LLVM assert with "let c <- fail;" #949

jruderman opened this issue Sep 20, 2011 · 1 comment

Comments

@jruderman
Copy link
Contributor

fn id(x: uint) -> uint { x }

fn main() {
    let c <- fail;
    id(c);
}

Assertion failed: (getOperand(0)->getType() == cast(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"), function AssertOK, file Instructions.cpp, line 1065.

jruderman added a commit that referenced this issue Sep 20, 2011
@marijnh
Copy link
Contributor

marijnh commented Sep 21, 2011

Could we maybe organize fail/ret/cont/break-related trans bugs in one or two issues? There are at least seven issues open where our compiler either uses a type of the wrong value or tries to continue a terminated block when compiling unreachable code. To keep the issue list comprehensible, we should at least link them to each other -- maybe even consider them duplicates.

ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
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