introduce a few copies here and there
This commit is contained in:
parent
f9aef928ca
commit
c9edc0f0a1
3 changed files with 3 additions and 3 deletions
|
@ -1214,7 +1214,7 @@ mod node {
|
|||
}
|
||||
|
||||
fn get_next_char_in_leaf(it: t) -> option<char> {
|
||||
alt(it.leaf) {
|
||||
alt copy it.leaf {
|
||||
option::none { ret option::none }
|
||||
option::some(aleaf) {
|
||||
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:
|
||||
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:
|
||||
let rval = Call(bcx, ccx.upcalls.malloc, [lltydesc]);
|
||||
|
|
|
@ -36,7 +36,7 @@ enum x86_64_reg_class {
|
|||
memory_class
|
||||
}
|
||||
|
||||
fn is_sse(c: x86_64_reg_class) -> bool {
|
||||
fn is_sse(++c: x86_64_reg_class) -> bool {
|
||||
ret alt c {
|
||||
sse_fs_class | sse_fv_class |
|
||||
sse_ds_class | sse_dv_class { true }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue