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 failure in llvm::InvokeInst::init #21321

Closed
ptal opened this issue Jan 17, 2015 · 2 comments
Closed

LLVM assertion failure in llvm::InvokeInst::init #21321

ptal opened this issue Jan 17, 2015 · 2 comments
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@ptal
Copy link

ptal commented Jan 17, 2015

Assertion:

rustc: /home/.../rust/src/llvm/lib/IR/Instructions.cpp:550: void llvm::InvokeInst::init(llvm::Value*, llvm::BasicBlock*, llvm::BasicBlock*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&): Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Invoking a function with a bad signature!"' failed.

You can replicate this assertion with cargo test, the project is ptal/pcp@a3c2747

The test generating this failure is newvar_test in solver.rs

Rust version: rustc 1.0.0-dev (89c4e37 2015-01-17 10:58:43 +0000)

@kmcallister kmcallister added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ labels Jan 17, 2015
@ptal
Copy link
Author

ptal commented Mar 9, 2015

The newest version of my code now works fine. The code has not changed much but I did not fix the compiling errors (provoked by the newest version of the rust compiler) of the earlier version to see if it still fails. So I think it's fixed, however, to be sure, we'd need to execute this particular version.

I let the decision of closing (or not) this ticket to the mainteners.

@steveklabnik
Copy link
Member

@ptal well, it seems like nobody else has seen this issue, so I am going to give it a close. Thank you for reporting! It's nice when bugs just work themselves out...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

5 participants