diff options
| author | Morten Lohne <lohnemorten@gmail.com> | 2023-08-10 01:14:19 +0200 |
|---|---|---|
| committer | Morten Lohne <lohnemorten@gmail.com> | 2023-08-10 02:26:11 +0200 |
| commit | 75d5f107ddbac9e0872f1551e70dfbf5d441f3e0 (patch) | |
| tree | 5852900623a156c606969f65ec39d31a169e8e50 /compiler/rustc_codegen_llvm/src | |
| parent | 27a43f083480a3a2a02a544a8ab6030aaab73a53 (diff) | |
| download | rust-75d5f107ddbac9e0872f1551e70dfbf5d441f3e0.tar.gz rust-75d5f107ddbac9e0872f1551e70dfbf5d441f3e0.zip | |
Bugfix: 'can_have_side_effects()' would return 'false' for struct/enum/array/tuple literals unless *all* sub-expressions had side effects. This would easily allow side effects to slip through, and also wrongly label empty literals as having side effects. Add some tests for the last point
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
