diff options
| author | Patrick Walton <[email protected]> | 2010-12-09 13:39:33 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-12-09 13:39:33 -0800 |
| commit | e652e58bfc8f8e0fedf5a0ccb30fe2da91614cb4 (patch) | |
| tree | 819077f8d619bdbdc571dce8c0e14a385e716050 /src/comp | |
| parent | Remove redundant trans_drop_str, fix buggy branch in trans_if. Un-XFAIL drop-... (diff) | |
| download | rust-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.rs | 6 |
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))); |