diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2016-12-18 17:13:09 -0700 |
|---|---|---|
| committer | Mark Simulacrum <mark.simulacrum@gmail.com> | 2016-12-20 20:03:33 -0700 |
| commit | 63a0d85457664e9af6c19cc0fb3927a218c31865 (patch) | |
| tree | 5ed124c8377b381c861d0487e15b6e6306ee5bf1 | |
| parent | 2bda3b7acb6bd3f118ac64757f3adb64e2abc8bf (diff) | |
| download | rust-63a0d85457664e9af6c19cc0fb3927a218c31865.tar.gz rust-63a0d85457664e9af6c19cc0fb3927a218c31865.zip | |
Make add_incoming_to_phi call slightly less confusing.
| -rw-r--r-- | src/librustc_trans/tvec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_trans/tvec.rs b/src/librustc_trans/tvec.rs index c693a5ceabe..07928964873 100644 --- a/src/librustc_trans/tvec.rs +++ b/src/librustc_trans/tvec.rs @@ -47,7 +47,7 @@ pub fn slice_for_each<'a, 'tcx, F>( f(&body_bcx, if zst { data_ptr } else { current }); let next = add(&body_bcx, current, C_uint(bcx.ccx(), 1usize)); - body_bcx.add_incoming_to_phi(current, next, body_bcx.llbb()); + header_bcx.add_incoming_to_phi(current, next, body_bcx.llbb()); body_bcx.br(header_bcx.llbb()); next_bcx } |
