diff options
| author | Graydon Hoare <[email protected]> | 2010-12-31 12:20:18 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-12-31 12:20:18 -0800 |
| commit | f072718cfe83f0b92fa445cfa5b4f973886ef918 (patch) | |
| tree | a712675b2f2dc6223d2bbb9c8a86de6cd4392349 /src | |
| parent | Add std.dbg.trap(str msg) for help debugging. (diff) | |
| download | rust-f072718cfe83f0b92fa445cfa5b4f973886ef918.tar.xz rust-f072718cfe83f0b92fa445cfa5b4f973886ef918.zip | |
Replace arg Load with load_non_structural in obj ctor.
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp/middle/trans.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |