-
Notifications
You must be signed in to change notification settings - Fork 13.3k
llvm::StructType::getElementType: Assertion `N < NumContainedTys && "Element number out of range!"' failed. #21721
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
Comments
Current LLVM fork tip: rust-lang/llvm@b820135 on top of llvm-mirror/llvm@0ad623b. |
Fixes rust-lang#22159 Fixes rust-lang#21721 Conflicts: src/llvm
This needs a test, and there's also two hacks introduced by #21744, that should be reverted now that the LLVM bug is fixed (they both reference this issue). |
@eddyb will you take care of that? |
I'm still getting this failure in #21973 during the compilation of rustc-trans |
I guess you get that in stage0? That will need a new snapshot, so that the
|
Running this in the playpen gives:
This is actually happening inside LLVM optimizations, in the
early-cse
pass (-C opt-level=1
still triggers it). Originally found in amemcpy
optimized into aload
.Reduced LLVM IR:
cc @dotdash
The text was updated successfully, but these errors were encountered: