diff options
| author | Patrick Walton <[email protected]> | 2011-04-01 10:59:59 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-04-01 10:59:59 -0700 |
| commit | 69a34b992bccf0c8db8d0d45b5bdddde66874885 (patch) | |
| tree | f5d6449d894dc56e38b25e7c5f04f017eb73d23e /src | |
| parent | Cleanup typos and newlines (diff) | |
| download | rust-69a34b992bccf0c8db8d0d45b5bdddde66874885.tar.xz rust-69a34b992bccf0c8db8d0d45b5bdddde66874885.zip | |
rustc: Remove useless call to tag_variant_with_id()
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp/middle/trans.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index fca1c6c0..c018ad57 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -3521,7 +3521,6 @@ fn trans_pat_binding(@block_ctxt cx, @ast.pat pat, ValueRef llval) // Get the appropriate variant for this tag. auto vdef = option.get[ast.variant_def](vdef_opt); - auto variant = tag_variant_with_id(cx.fcx.ccx, vdef._0, vdef._1); auto lltagptr = cx.build.PointerCast(llval, T_opaque_tag_ptr(cx.fcx.ccx.tn)); |