aboutsummaryrefslogtreecommitdiff
path: root/src/comp/middle
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-12-31 12:20:18 -0800
committerGraydon Hoare <[email protected]>2010-12-31 12:20:18 -0800
commitf072718cfe83f0b92fa445cfa5b4f973886ef918 (patch)
treea712675b2f2dc6223d2bbb9c8a86de6cd4392349 /src/comp/middle
parentAdd std.dbg.trap(str msg) for help debugging. (diff)
downloadrust-f072718cfe83f0b92fa445cfa5b4f973886ef918.tar.xz
rust-f072718cfe83f0b92fa445cfa5b4f973886ef918.zip
Replace arg Load with load_non_structural in obj ctor.
Diffstat (limited to 'src/comp/middle')
-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 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);