diff options
| author | Aurelia Molzer <5550310+HeroicKatora@users.noreply.github.com> | 2025-08-09 21:40:12 +0200 |
|---|---|---|
| committer | Aurelia Molzer <5550310+197g@users.noreply.github.com> | 2025-08-09 21:44:31 +0200 |
| commit | 7d7fe3ff05c7c14834252e3345389e4dbf842cc5 (patch) | |
| tree | 3f68270936b0dd0c48c019beeaf56f1e33e25a75 /tests/ui/codegen/unsupported-static-initializer-in-const-array.rs | |
| parent | 21bdfa14cbd99aba173751a2c723fb1e65de401b (diff) | |
| download | rust-7d7fe3ff05c7c14834252e3345389e4dbf842cc5.tar.gz rust-7d7fe3ff05c7c14834252e3345389e4dbf842cc5.zip | |
Adjust for codegen of unpredictable return value
It seems important for LLVM that we select on the values by-value instead of reading and have no intermediate store. So make sure the guards selects both potential drops but defers the return value to the second selection. Since the two options alias we use raw mutable pointers instead of mutable references as before.
Diffstat (limited to 'tests/ui/codegen/unsupported-static-initializer-in-const-array.rs')
0 files changed, 0 insertions, 0 deletions
