Skip to content

LLVM assert when compiling with ThinLTO #45132

Closed
@Thinkofname

Description

@Thinkofname

RUSTFLAGS='-C codegen-units=16 -Z thinlto' cargo +nightly build --release on my project causes:

rustc: /checkout/src/llvm/lib/Transforms/Scalar/GVN.cpp:1933: bool llvm::GVN::replaceOperandsWithConsts(llvm::Instruction*) const: Assertion `!isa<Constant>(Operand) && "Replacing constants with constants is invalid"' failed.

(No backtrace)

Its a private crate that is somewhat large and I have no idea where to start to be able to reduce it down to something that still causes the issue, I'm up for suggestions though.

$ rustc +nightly --version
rustc 1.22.0-nightly (150b625a0 2017-10-08)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions