aboutsummaryrefslogtreecommitdiff
path: root/src/comp
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-04-05 21:08:13 -0700
committerGraydon Hoare <[email protected]>2011-04-05 21:08:13 -0700
commit52abd912c06f57a410af7c6b59a78b772ac44368 (patch)
tree99f625da61f40b7f3179835de0c6593e68591577 /src/comp
parentAdd new minimal test for current blocker on bootstrapping. (diff)
downloadrust-52abd912c06f57a410af7c6b59a78b772ac44368.tar.xz
rust-52abd912c06f57a410af7c6b59a78b772ac44368.zip
Brute force and ignorance workaround for tag-and-generic-obj; un-XFAIL it.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/trans.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 6fcd7b37..980c88db 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -4410,6 +4410,9 @@ fn trans_args(@block_ctxt cx,
}
val = bcx.build.PointerCast(val, lldestty);
+ } else if (mode == ast.alias) {
+ auto lldestty = arg_tys.(i);
+ val = bcx.build.PointerCast(val, lldestty);
}
if (mode == ast.val) {