introduce a few copies here and there

This commit is contained in:
Niko Matsakis
2012-05-12 19:31:28 -07:00
parent f9aef928ca
commit c9edc0f0a1
3 changed files with 3 additions and 3 deletions

View File

@@ -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]);

View File

@@ -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 }