Skip to content

Commit b55071b

Browse files
committed
---
yaml --- r: 3752 b: refs/heads/master c: 8450ab9 h: refs/heads/master v: v3
1 parent a8ce7f1 commit b55071b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: f5d604f0c371b17c8d65b471463b819798c88b4c
2+
refs/heads/master: 8450ab9a2b2cafa9ef4fa624b1843b46a7b41a26

trunk/src/comp/middle/trans.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1407,11 +1407,9 @@ fn dynamic_size_of(&@block_ctxt cx, ty::t t) -> result {
14071407
ret rslt(bcx, total_size);
14081408
}
14091409
case (ty::ty_ivec(?mt)) {
1410-
auto rs = field_of_tydesc(cx, mt.ty, false,
1411-
abi::tydesc_field_size);
1410+
auto rs = size_of(cx, mt.ty);
14121411
auto bcx = rs.bcx;
1413-
auto llunitszptr = rs.val;
1414-
auto llunitsz = bcx.build.Load(llunitszptr);
1412+
auto llunitsz = rs.val;
14151413
auto llsz = bcx.build.Add(llsize_of(T_opaque_ivec()),
14161414
bcx.build.Mul(llunitsz, C_uint(abi::ivec_default_length)));
14171415
ret rslt(bcx, llsz);

0 commit comments

Comments
 (0)