Skip to content

Commit ec7bbe5

Browse files
committed
---
yaml --- r: 57898 b: refs/heads/incoming c: 0780b28 h: refs/heads/master v: v3
1 parent 0c1cfe9 commit ec7bbe5

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
@@ -6,7 +6,7 @@ refs/heads/try: bf67eb2362b7d0f37012f2d6dac604c3bbacd2c6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/incoming: c6a9e28842b0e8ae675b552b742312a9ffa60120
9+
refs/heads/incoming: 0780b2830f06babba21dcd9f6c325576dd374183
1010
refs/heads/dist-snap: 00dbbd01c2aee72982b3e0f9511ae1d4428c3ba9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/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
}

branches/incoming/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");

branches/incoming/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)