We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8ce7f1 commit b55071bCopy full SHA for b55071b
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: f5d604f0c371b17c8d65b471463b819798c88b4c
+refs/heads/master: 8450ab9a2b2cafa9ef4fa624b1843b46a7b41a26
trunk/src/comp/middle/trans.rs
@@ -1407,11 +1407,9 @@ fn dynamic_size_of(&@block_ctxt cx, ty::t t) -> result {
1407
ret rslt(bcx, total_size);
1408
}
1409
case (ty::ty_ivec(?mt)) {
1410
- auto rs = field_of_tydesc(cx, mt.ty, false,
1411
- abi::tydesc_field_size);
+ auto rs = size_of(cx, mt.ty);
1412
auto bcx = rs.bcx;
1413
- auto llunitszptr = rs.val;
1414
- auto llunitsz = bcx.build.Load(llunitszptr);
+ auto llunitsz = rs.val;
1415
auto llsz = bcx.build.Add(llsize_of(T_opaque_ivec()),
1416
bcx.build.Mul(llunitsz, C_uint(abi::ivec_default_length)));
1417
ret rslt(bcx, llsz);
0 commit comments