diff options
| author | Graydon Hoare <[email protected]> | 2010-08-25 12:07:03 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-08-25 12:08:05 -0700 |
| commit | b2b72a08dbd18e384972dd835a93df9167380247 (patch) | |
| tree | 5a660cce5790a4ad28650bcbcf336ee44f68a46e /src/boot/be/x86.ml | |
| parent | Fix ghastly typestate bug breaking nested functions. (diff) | |
| download | rust-b2b72a08dbd18e384972dd835a93df9167380247.tar.xz rust-b2b72a08dbd18e384972dd835a93df9167380247.zip | |
Janitorial work on obj box / body / field terminology, following froystig's brave lead.
Diffstat (limited to 'src/boot/be/x86.ml')
| -rw-r--r-- | src/boot/be/x86.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/be/x86.ml b/src/boot/be/x86.ml index f879027b..202f3589 100644 --- a/src/boot/be/x86.ml +++ b/src/boot/be/x86.ml @@ -1055,7 +1055,7 @@ let rec calculate_sz (e:Il.emitter) (size:size) (in_obj:bool) : unit = (* Bind all the referent types we'll need... *) - let obj_body_rty = Semant.obj_closure_rty word_bits in + let obj_box_rty = Semant.obj_box_rty word_bits in let tydesc_rty = Semant.tydesc_rty word_bits in (* Note that we cheat here and pretend only to have i+1 tydescs (because we GEP to the i'th while still in this function, so no one outside @@ -1068,7 +1068,7 @@ let rec calculate_sz (e:Il.emitter) (size:size) (in_obj:bool) : unit = mov (rc eax) (Il.Cell closure_ptr); let obj_body = word_n (h eax) Abi.box_rc_field_body in - let obj_body = Il.ptr_cast obj_body obj_body_rty in + let obj_body = Il.ptr_cast obj_body obj_box_rty in let tydesc_ptr = get_element_ptr obj_body Abi.obj_body_elt_tydesc in mov (rc eax) (Il.Cell tydesc_ptr); |