diff options
| author | cardigan1008 <211250058@smail.nju.edu.cn> | 2024-05-09 23:44:54 +0800 |
|---|---|---|
| committer | cardigan1008 <211250058@smail.nju.edu.cn> | 2024-05-09 23:44:54 +0800 |
| commit | 62318b38ef591c70d9db875e88a04aa37c565828 (patch) | |
| tree | a2261a64ee210fcfef5c3fb1d5faad1eea43c864 /compiler/rustc_codegen_llvm/src | |
| parent | c54301f114d6fab44e8305da328eece26f682456 (diff) | |
| download | rust-62318b38ef591c70d9db875e88a04aa37c565828.tar.gz rust-62318b38ef591c70d9db875e88a04aa37c565828.zip | |
fix: Check whether next_node is else-less if in get_return_block
Fix #124819, where a if-less block causes a wrong output. It is caused by get_return_block in get_fn_decl. In get_return_block, when a else-less if expression is the tail expression, the check for next_node will keep iterating. So it is necessary to make a early return in the check.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
