about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-11-26 16:02:26 +0100
committerGitHub <noreply@github.com>2021-11-26 16:02:26 +0100
commit13c60669ccb75c6a3036570645c2a995b0cc26a9 (patch)
tree332d29095ef18cf4dd9b77812405c1c8245f724f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentfdc305d58d7cf93703a47118538f04b2b53c2873 (diff)
parent69d1917672d302e2da14ad6673e6a0478c62d1ad (diff)
downloadrust-13c60669ccb75c6a3036570645c2a995b0cc26a9.tar.gz
rust-13c60669ccb75c6a3036570645c2a995b0cc26a9.zip
Rollup merge of #91212 - compiler-errors:issue91206, r=oli-obk
Fix ICE due to out-of-bounds statement index when reporting borrowck error

Replace an `[index]` with a `.get` when `statement_index` points to a basic-block terminator (and is therefore out-of-bounds in the statements list).

Fixes #91206
Cc ``@camsteffen``
r? ``@oli-obk``
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions