about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2010-12-31 12:20:18 -0800
committerGraydon Hoare <graydon@mozilla.com>2010-12-31 12:20:18 -0800
commitf072718cfe83f0b92fa445cfa5b4f973886ef918 (patch)
treea712675b2f2dc6223d2bbb9c8a86de6cd4392349 /src/comp
parentc0d4e88428296b8da6f2616f47c760b32abf66ed (diff)
downloadrust-f072718cfe83f0b92fa445cfa5b4f973886ef918.tar.gz
rust-f072718cfe83f0b92fa445cfa5b4f973886ef918.zip
Replace arg Load with load_non_structural in obj ctor.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/trans.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 7119fa11fd3..18a3a950ff6 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);