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 assertion: Ptr must be a pointer to Val type #32389

Closed
alexcrichton opened this Issue Mar 21, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@alexcrichton
Copy link
Member

alexcrichton commented Mar 21, 2016

This code compiles fine on stable/beta, but ICEs on nightly:

pub struct Foo {
    raw: u8
}

pub struct Bar {
    raw: u8,
}

impl Drop for Bar {
    fn drop(&mut self) {}
}

fn foo<T>() -> T { loop {} }

fn main() {
    let mut a: &mut FnMut(Foo, Bar) = foo();
    let ref mut b = a;
    b(foo(), foo());
}

cc @eddyb, happened last night, maybe recent trans changes?

@dotdash

This comment has been minimized.

Copy link
Contributor

dotdash commented Mar 21, 2016

That's weird...

Stored value type does not match pointer operand type!
  store i16 %2, i8* %7, align 1

@dotdash dotdash self-assigned this Mar 21, 2016

dotdash added a commit to dotdash/rust that referenced this issue Mar 21, 2016

dotdash added a commit to dotdash/rust that referenced this issue Mar 21, 2016

dotdash added a commit to dotdash/rust that referenced this issue Mar 21, 2016

bors added a commit that referenced this issue Mar 21, 2016

Auto merge of #32393 - dotdash:32389, r=eddyb
Fix tupling of fn args for rust-call ABI functions

Fixes #32389

bors added a commit that referenced this issue Mar 21, 2016

Auto merge of #32393 - dotdash:32389, r=eddyb
Fix tupling of fn args for rust-call ABI functions

Fixes #32389

@bors bors closed this in #32393 Mar 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.