diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2014-10-13 16:12:38 +0200 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2014-10-13 16:16:16 +0200 |
| commit | fafe136c2d3bf62d5449b024516bd5439bbd0da1 (patch) | |
| tree | 11ec9e174335a46b7daf030becd1a4116943ecca /src/rustllvm/RustWrapper.cpp | |
| parent | 70d8b8ddc547d51f2aadef3d9e489e998f578970 (diff) | |
| download | rust-fafe136c2d3bf62d5449b024516bd5439bbd0da1.tar.gz rust-fafe136c2d3bf62d5449b024516bd5439bbd0da1.zip | |
Emit lifetime end markers for function arguments
Function arguments are (hopefully!) the last places where allocas don't
get proper markers for the end of their lifetimes. This means that this
code using 64 bytes of stack for the function arguments:
````rust
std::io::println("1");
std::io::println("2");
std::io::println("3");
std::io::println("4");
````
But with the proper lifetime markers, the slots can be reused, and
the arguments only need 16 bytes of stack.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
