about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <bsteinbr@gmail.com>2013-07-08 07:42:56 +0200
committerBjörn Steinbrink <steinbrink@saltation.de>2013-07-08 13:17:46 +0200
commit4a485f8cec524c8f3f57e4fd3248d5093ed3dc5f (patch)
tree8f07767105cbbed46a2635b4609b227c7a7302db /src/rt/rust_kernel.cpp
parent48ad726f2abc90fe62cdf239bc1c9318261a6926 (diff)
downloadrust-4a485f8cec524c8f3f57e4fd3248d5093ed3dc5f.tar.gz
rust-4a485f8cec524c8f3f57e4fd3248d5093ed3dc5f.zip
Avoid unused allocas for immediate return values
There's no need to allocate a return slot for anykind of immediate
return value, not just not for nils. Also, when the return value is
ignored, we only have to copy it to a temporary alloca if it's actually
required to call drop_ty on it.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions