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

Assertion "Ptr must be a pointer to Val type!"' failed #6390

Closed
silene opened this issue May 10, 2013 · 2 comments
Closed

Assertion "Ptr must be a pointer to Val type!"' failed #6390

silene opened this issue May 10, 2013 · 2 comments
Labels
A-codegen Area: Code generation I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@silene
Copy link

silene commented May 10, 2013

With rust 0.6, compiling the following code

fn main() -> () {
  let ref y = 5;
  let z = &y;
}

produces

rustc: src/llvm/lib/VMCore/Instructions.cpp:1062: void llvm::StoreInst::AssertOK(): Assertion `getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"' failed.
@huonw
Copy link
Member

huonw commented May 17, 2013

Same problem as #4653.

@thestinger
Copy link
Contributor

Closing as duplicate.

flip1995 pushed a commit to flip1995/rust that referenced this issue Dec 6, 2020
Added known problem to comparison_chain docs

changelog: Added documentation to comparison_chain that explains a possible performance penalty, according to issue rust-lang#5354

This is my first PR, I hope everything has been done correctly.

Fixes rust-lang#5354
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

3 participants