diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-11-18 15:10:14 +0100 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-11-18 15:56:53 +0100 |
| commit | 68db68c4cccb9204e91ffcd08fd27be0f33f0033 (patch) | |
| tree | 70f3b99d5ebab4e4187cbffd598e99aa034be7d0 /src/comp/driver | |
| parent | f6491bb42636f4c43f3cbb48fdb98ddd749e6e5d (diff) | |
| download | rust-68db68c4cccb9204e91ffcd08fd27be0f33f0033.tar.gz rust-68db68c4cccb9204e91ffcd08fd27be0f33f0033.zip | |
Make trans use last_use info to not actually generate copies
Issue #925
Diffstat (limited to 'src/comp/driver')
| -rw-r--r-- | src/comp/driver/rustc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index 518a6251702..74ed9f16a6f 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -161,7 +161,7 @@ fn compile_input(sess: session::session, cfg: ast::crate_cfg, input: str, let llmod = time(time_passes, "translation", bind trans::trans_crate(sess, crate, ty_cx, output, ast_map, - mut_map, copy_map)); + mut_map, copy_map, last_uses)); time(time_passes, "LLVM passes", bind link::write::run_passes(sess, llmod, output)); } |
