Update cranelift
This commit is contained in:
parent
7f020206e8
commit
83e6251f21
10
src/base.rs
10
src/base.rs
@ -832,6 +832,16 @@ fn is_fat_ptr<'tcx>(fx: &FunctionCx<'_, '_, 'tcx>, ty: Ty<'tcx>) -> bool {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
StatementKind::Coverage { .. } => fx.tcx.sess.fatal("-Zcoverage is unimplemented"),
|
StatementKind::Coverage { .. } => fx.tcx.sess.fatal("-Zcoverage is unimplemented"),
|
||||||
|
StatementKind::CopyNonOverlapping(box rustc_middle::mir::CopyNonOverlapping {
|
||||||
|
src,
|
||||||
|
dst,
|
||||||
|
count,
|
||||||
|
}) => {
|
||||||
|
let dst = codegen_operand(fx, dst).load_scalar(fx);
|
||||||
|
let src = codegen_operand(fx, src).load_scalar(fx);
|
||||||
|
let count = codegen_operand(fx, count).load_scalar(fx);
|
||||||
|
fx.bcx.call_memcpy(fx.cx.module.target_config(), dst, src, count);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
#![warn(rust_2018_idioms)]
|
#![warn(rust_2018_idioms)]
|
||||||
#![warn(unused_lifetimes)]
|
#![warn(unused_lifetimes)]
|
||||||
#![warn(unreachable_pub)]
|
#![warn(unreachable_pub)]
|
||||||
|
#![feature(box_patterns)]
|
||||||
|
|
||||||
extern crate snap;
|
extern crate snap;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
Loading…
Reference in New Issue
Block a user