about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <bsteinbr@gmail.com>2013-06-20 16:42:44 +0200
committerBjörn Steinbrink <bsteinbr@gmail.com>2013-06-21 13:36:25 +0200
commit4fb2c09541a5cb7ea91785a9c972ee57ff110c62 (patch)
tree23fa558787b23396089e6791b9c28f0eab02ec1d /src/rt/rust_task.cpp
parentdc262d9aa742adadb92558a588aeaa57267fdee4 (diff)
downloadrust-4fb2c09541a5cb7ea91785a9c972ee57ff110c62.tar.gz
rust-4fb2c09541a5cb7ea91785a9c972ee57ff110c62.zip
Avoid pointless allocas for "nil" return values
By using "void" instead of "{}" as the LLVM type for nil, we can avoid
the alloca/store/load sequence for the return value, resulting in less
and simpler IR code.

This reduces compile times by about 10%.
Diffstat (limited to 'src/rt/rust_task.cpp')
0 files changed, 0 insertions, 0 deletions