Skip to content

Commit 310db66

Browse files
committed
---
yaml --- r: 55927 b: refs/heads/master c: 0780b28 h: refs/heads/master i: 55925: fd85a7d 55923: 997de46 55919: fcb8388 v: v3
1 parent fc73ef1 commit 310db66

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c6a9e28842b0e8ae675b552b742312a9ffa60120
2+
refs/heads/master: 0780b2830f06babba21dcd9f6c325576dd374183
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 79a2b2eafc3c766cecec8a5f76317693bae9ed17
55
refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a

trunk/src/librustc/front/intrinsic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ pub mod intrinsic {
132132
#[abi = "rust-intrinsic"]
133133
pub extern "rust-intrinsic" {
134134
pub fn get_tydesc<T>() -> *();
135-
pub fn visit_tydesc(++td: *TyDesc, &&tv: @TyVisitor);
135+
pub fn visit_tydesc(++td: *TyDesc, ++tv: @TyVisitor);
136136
}
137137
}
138138
}

trunk/src/librustc/middle/trans/foreign.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,9 +771,14 @@ pub fn trans_intrinsic(ccx: @CrateContext,
771771
~"visit_tydesc" => {
772772
let td = get_param(decl, first_real_arg);
773773
let visitor = get_param(decl, first_real_arg + 1u);
774+
let llvisitorptr = alloca(bcx, val_ty(visitor));
775+
Store(bcx, visitor, llvisitorptr);
774776
let td = PointerCast(bcx, td, T_ptr(ccx.tydesc_type));
775-
glue::call_tydesc_glue_full(bcx, visitor, td,
776-
abi::tydesc_field_visit_glue, None);
777+
glue::call_tydesc_glue_full(bcx,
778+
llvisitorptr,
779+
td,
780+
abi::tydesc_field_visit_glue,
781+
None);
777782
}
778783
~"frame_address" => {
779784
let frameaddress = *ccx.intrinsics.get(&~"llvm.frameaddress");

trunk/src/librustc/middle/typeck/check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3479,7 +3479,7 @@ pub fn check_intrinsic_type(ccx: @mut CrateCtxt, it: @ast::foreign_item) {
34793479
let td_ptr = ty::mk_ptr(ccx.tcx, ty::mt {ty: tydesc_ty,
34803480
mutbl: ast::m_imm});
34813481
(0u, ~[arg(ast::by_copy, td_ptr),
3482-
arg(ast::by_ref, visitor_object_ty)], ty::mk_nil())
3482+
arg(ast::by_copy, visitor_object_ty)], ty::mk_nil())
34833483
}
34843484
~"frame_address" => {
34853485
let fty = ty::mk_closure(ccx.tcx, ty::ClosureTy {

0 commit comments

Comments
 (0)