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 assert when compiling with ThinLTO #45132

Closed
Thinkofname opened this issue Oct 9, 2017 · 1 comment
Closed

LLVM assert when compiling with ThinLTO #45132

Thinkofname opened this issue Oct 9, 2017 · 1 comment

Comments

@Thinkofname
Copy link

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)
@Thinkofname
Copy link
Author

Duplicate of #45131 that was just opened and has a way to repoduce the issue. Closing this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant