rust-lang / rustc_codegen_gcc

libgccjit AOT codegen for rustc
Apache License 2.0
913 stars 60 forks source link

ICE: hir: index out of bounds: the len is 5 but the index is 5 #473

Open antoyo opened 6 months ago

antoyo commented 6 months ago

See this issue: https://github.com/rust-lang/rust/issues/122399

RalfJung commented 1 month ago

In case it's useful, this is the diff for cranelift to fix the same issue: https://github.com/rust-lang/rustc_codegen_cranelift/commit/e775fdc9e92939111255c7e228a211cff6e03485.

antoyo commented 1 month ago

It will probably be easier by looking at the changes in the LLVM codegen, actually. But thanks anyway.

RalfJung commented 1 month ago

Ah okay. Those happened in https://github.com/rust-lang/rust/pull/121644.