Skip to content

LLVM assertion in crushtool crate #56482

Closed
@pietroalbini

Description

@pietroalbini

The crushtool crate fails to compile when LLVM assertions are enabled:

rustc: /checkout/src/llvm/lib/IR/Type.cpp:241: static llvm::IntegerType *llvm::IntegerType::get(llvm::LLVMContext &, unsigned int): Assertion `NumBits >= MIN_INT_BITS && "bitwidth too small"' failed.

This is not a regression, it's confirmed to also fail on 1.28.0 (alt builds are not available past that). You might want to remove the crate's lockfile if you test it locally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-codegenArea: Code generationT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions