Miscompilation when matching on an enum after printing Hello world #114691
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
P-critical
Critical priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
The assertion shouldn't fail, because
pass
isPass::Transparent
and so the parameter to the functioncheck
should beNone
, but the assertion still fails.Meta
rustc --version --verbose
:It seems that the bug only occurs when using
opt-level=1
oropt-level=2
and after updating to LLVM 17.The text was updated successfully, but these errors were encountered: