Skip to content

Commit 6f65286

Browse files
committed
---
yaml --- r: 1711 b: refs/heads/master c: 533dea7 h: refs/heads/master i: 1709: ebf7899 1707: 215b7da 1703: 9b52e11 1695: 772b44d v: v3
1 parent 4fadc9c commit 6f65286

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 78bcfe28f2d01cd19087b0a29871742a729e4e49
2+
refs/heads/master: 533dea772f293e1314e7129ac6ed24c5ad333e1e

trunk/src/comp/middle/trans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4178,7 +4178,6 @@ fn trans_vec(@block_ctxt cx, vec[@ast.expr] args,
41784178
}
41794179
}
41804180

4181-
auto llunit_ty = type_of(cx.fcx.ccx, unit_ty);
41824181
auto bcx = cx;
41834182
auto unit_sz = size_of(bcx, unit_ty);
41844183
bcx = unit_sz.bcx;
@@ -4222,6 +4221,7 @@ fn trans_vec(@block_ctxt cx, vec[@ast.expr] args,
42224221

42234222
auto dst_val;
42244223
if (!ty.type_has_dynamic_size(unit_ty)) {
4224+
auto llunit_ty = type_of(cx.fcx.ccx, unit_ty);
42254225
dst_val = bcx.build.PointerCast(dst_res.val, T_ptr(llunit_ty));
42264226
} else {
42274227
dst_val = dst_res.val;

0 commit comments

Comments
 (0)