]> git.lizzy.rs Git - rust.git/commit
Change index for SwitchInt case
authorJonas Schievink <jonasschievink@gmail.com>
Sun, 8 Mar 2020 00:23:00 +0000 (01:23 +0100)
committerJonas Schievink <jonasschievink@gmail.com>
Sun, 8 Mar 2020 00:23:00 +0000 (01:23 +0100)
commit8d9f633f4d78777487010ae119454dc9674e42ee
tree1631ebdeba06c921ec0d00c96a0c76af23f8ef53
parent46aeef6e655a85087f82bb0d1f94a97e83009218
Change index for SwitchInt case

The indices do not matter here, and this fixes an index out of bounds
panic when compiling a generator that can unwind but not return.
src/librustc_mir/transform/generator.rs