about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-25 04:17:03 +0000
committerbors <bors@rust-lang.org>2020-09-25 04:17:03 +0000
commit9d74efe32eb8e1053d9e00f604d4c5760be9382f (patch)
tree835cf88b7bbd7c91d4307878fbcc6a0e73914bc4 /compiler/rustc_codegen_llvm/src
parent5bfeee5fe0140b0c2e5c96b3208c02c4ab04f8b5 (diff)
parenta875c7a1ea31f86d4a796209f50303564ce15a16 (diff)
downloadrust-9d74efe32eb8e1053d9e00f604d4c5760be9382f.tar.gz
rust-9d74efe32eb8e1053d9e00f604d4c5760be9382f.zip
Auto merge of #76844 - simonvandel:fix-76803, r=wesleywiser
Fix #76803 miscompilation

Fixes #76803
Seems like it was an oversight that the discriminant value being set was not compared to the target value from the SwitchInt, as a comment says this is a requirement for the optimization to be sound.

r? `@wesleywiser` since you are probably familiar with the optimization and made #76837 to workaround the bug
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions