aboutsummaryrefslogtreecommitdiff
path: root/src/comp
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-12-09 13:39:33 -0800
committerPatrick Walton <[email protected]>2010-12-09 13:39:33 -0800
commite652e58bfc8f8e0fedf5a0ccb30fe2da91614cb4 (patch)
tree819077f8d619bdbdc571dce8c0e14a385e716050 /src/comp
parentRemove redundant trans_drop_str, fix buggy branch in trans_if. Un-XFAIL drop-... (diff)
downloadrust-e652e58bfc8f8e0fedf5a0ccb30fe2da91614cb4.tar.xz
rust-e652e58bfc8f8e0fedf5a0ccb30fe2da91614cb4.zip
rustc: Fix indirection problem with tag constructors
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/trans.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index dda6c77c..da4ea352 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -1947,11 +1947,7 @@ fn trans_tag_variant(@crate_ctxt cx, ast.def_id tag_id,
i = 0u;
for (ast.variant_arg va in variant.args) {
- auto llargalias = bcx.build.Load(fcx.llargs.get(va.id));
- auto llargval = bcx.build.Load(llargalias);
-
- llvm.LLVMDumpValue(llunionptr);
-
+ auto llargval = bcx.build.Load(fcx.llargs.get(va.id));
auto lldestptr = bcx.build.GEP(llunionptr,
vec(C_int(0), C_int(i as int)));