Skip to content

"Calling a function with a bad signature!"' failed. #22663

@dpc

Description

@dpc

I was able to crash compiler (rustc 1.0.0-nightly (522d09d 2015-02-19) (built 2015-02-21)
) :

rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/IR/Instructions.cpp:281: void llvm::CallInst::init(llvm::Value*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&): Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!"' failed.

with: https://github.com/dpc/rhex/tree/0dbf5b7f861638e59f367170b21b6b5ee9b286f7

and it turned out that this is a small change:

dpc/rhex@17487b8

that fixes the crash. I hope it's helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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