about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorAurelia Molzer <5550310+HeroicKatora@users.noreply.github.com>2025-08-09 21:40:12 +0200
committerAurelia Molzer <5550310+197g@users.noreply.github.com>2025-08-09 21:44:31 +0200
commit7d7fe3ff05c7c14834252e3345389e4dbf842cc5 (patch)
tree3f68270936b0dd0c48c019beeaf56f1e33e25a75 /compiler/rustc_codegen_gcc/example/std_example.rs
parent21bdfa14cbd99aba173751a2c723fb1e65de401b (diff)
downloadrust-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 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions