From f072718cfe83f0b92fa445cfa5b4f973886ef918 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Fri, 31 Dec 2010 12:20:18 -0800 Subject: Replace arg Load with load_non_structural in obj ctor. --- src/comp/middle/trans.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 7119fa11..18a3a950 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -2698,7 +2698,7 @@ impure fn trans_obj(@crate_ctxt cx, &ast._obj ob, ast.def_id oid, let int i = 0; for (ast.obj_field f in ob.fields) { auto arg = r.bcx.fcx.llargs.get(f.id); - arg = r.bcx.build.Load(arg); + arg = load_non_structural(r.bcx, arg, arg_tys.(i).ty); auto field = r.bcx.build.GEP(body_fields, vec(C_int(0),C_int(i))); r = copy_ty(r.bcx, true, field, arg, arg_tys.(i).ty); -- cgit v1.2.3