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>2022-01-20 17:10:31 +0100
committerGitHub <noreply@github.com>2022-01-20 17:10:31 +0100
commitd188287a54f1bb202e4c16067a6c4cdff4bdfd6c (patch)
tree097515561d2c8c13cbb695f3e3bcf9603ba21bad /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent98cb33894c87d5a92a19b1b1c38d64caa495a197 (diff)
parentc3e71d83cdeb0ccaf6584255313380fd166b1096 (diff)
downloadrust-d188287a54f1bb202e4c16067a6c4cdff4bdfd6c.tar.gz
rust-d188287a54f1bb202e4c16067a6c4cdff4bdfd6c.zip
Rollup merge of #89764 - tmiasko:uninhabited-enums, r=wesleywiser
Fix variant index / discriminant confusion in uninhabited enum branching

Fix confusion between variant index and variant discriminant. The pass
incorrectly assumed that for `Variants::Single` variant index is the same as
variant discriminant.

r? `@wesleywiser`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions