Skip to content

Commit 38c6bb5

Browse files
committed
---
yaml --- r: 4473 b: refs/heads/master c: 059c66b h: refs/heads/master i: 4471: c83af2f v: v3
1 parent bc19653 commit 38c6bb5

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: c0fc20411299105fef5ca2e3ee817ea1d9f5a793
2+
refs/heads/master: 059c66b9f729e3c249f28cde8e20202fb173c5b6

trunk/src/comp/middle/trans.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2359,11 +2359,7 @@ fn copy_ty(cx: &@block_ctxt, v: ValueRef, t: ty::t) -> result {
23592359

23602360
fn drop_slot(cx: &@block_ctxt, slot: ValueRef, t: &ty::t) -> result {
23612361
let llptr = load_if_immediate(cx, slot, t);
2362-
let re = drop_ty(cx, llptr, t);
2363-
let llty = val_ty(slot);
2364-
let llelemty = lib::llvm::llvm::LLVMGetElementType(llty);
2365-
call_bzero(cx, slot, llsize_of(llelemty), C_uint(1u));
2366-
ret re;
2362+
ret drop_ty(cx, llptr, t);
23672363
}
23682364

23692365
fn drop_ty(cx: &@block_ctxt, v: ValueRef, t: ty::t) -> result {

0 commit comments

Comments
 (0)