introduce a few copies here and there
This commit is contained in:
@@ -1214,7 +1214,7 @@ mod node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn get_next_char_in_leaf(it: t) -> option<char> {
|
fn get_next_char_in_leaf(it: t) -> option<char> {
|
||||||
alt(it.leaf) {
|
alt copy it.leaf {
|
||||||
option::none { ret option::none }
|
option::none { ret option::none }
|
||||||
option::some(aleaf) {
|
option::some(aleaf) {
|
||||||
if it.leaf_byte_pos >= aleaf.byte_len {
|
if it.leaf_byte_pos >= aleaf.byte_len {
|
||||||
|
|||||||
@@ -345,7 +345,7 @@ fn malloc_boxed_raw(bcx: block, t: ty::t,
|
|||||||
|
|
||||||
// Get the tydesc for the body:
|
// Get the tydesc for the body:
|
||||||
let lltydesc = get_tydesc(ccx, t, static_ti);
|
let lltydesc = get_tydesc(ccx, t, static_ti);
|
||||||
lazily_emit_all_tydesc_glue(ccx, static_ti);
|
lazily_emit_all_tydesc_glue(ccx, copy static_ti);
|
||||||
|
|
||||||
// Allocate space:
|
// Allocate space:
|
||||||
let rval = Call(bcx, ccx.upcalls.malloc, [lltydesc]);
|
let rval = Call(bcx, ccx.upcalls.malloc, [lltydesc]);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ enum x86_64_reg_class {
|
|||||||
memory_class
|
memory_class
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_sse(c: x86_64_reg_class) -> bool {
|
fn is_sse(++c: x86_64_reg_class) -> bool {
|
||||||
ret alt c {
|
ret alt c {
|
||||||
sse_fs_class | sse_fv_class |
|
sse_fs_class | sse_fv_class |
|
||||||
sse_ds_class | sse_dv_class { true }
|
sse_ds_class | sse_dv_class { true }
|
||||||
|
|||||||
Reference in New Issue
Block a user