Skip to content

Commit 77fcab0

Browse files
committed
Remove nonsensical load and store from trans_uniq::copy_val
Issue #409
1 parent f628003 commit 77fcab0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/comp/middle/trans_uniq.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,8 @@ fn copy_val(cx: @block_ctxt, dst: ValueRef, src: ValueRef,
9696
Store(bcx, llptr, dst);
9797

9898
let src = Load(bcx, src);
99-
let dst = Load(bcx, dst);
99+
let dst = llptr;
100100
let bcx = trans::copy_val(bcx, INIT, dst, src, content_ty);
101-
Store(bcx, src, llptr);
102101
ret bcx;
103102
}
104103

0 commit comments

Comments
 (0)