Skip to content

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

Closed
@ptal

Description

@ptal

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions