forked from AbleOS/holey-bytes
removing needless truncation of zeroth register
This commit is contained in:
parent
867a750d8f
commit
085c593add
|
@ -458,6 +458,10 @@ struct InstrCtx<'a> {
|
||||||
|
|
||||||
impl HbvmBackend {
|
impl HbvmBackend {
|
||||||
fn extend(&mut self, base: ty::Id, dest: ty::Id, reg: Reg, tys: &Types, files: &[parser::Ast]) {
|
fn extend(&mut self, base: ty::Id, dest: ty::Id, reg: Reg, tys: &Types, files: &[parser::Ast]) {
|
||||||
|
if reg == 0 {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let (bsize, dsize) = (tys.size_of(base), tys.size_of(dest));
|
let (bsize, dsize) = (tys.size_of(base), tys.size_of(dest));
|
||||||
debug_assert!(bsize <= 8, "{}", ty::Display::new(tys, files, base));
|
debug_assert!(bsize <= 8, "{}", ty::Display::new(tys, files, base));
|
||||||
debug_assert!(dsize <= 8, "{}", ty::Display::new(tys, files, dest));
|
debug_assert!(dsize <= 8, "{}", ty::Display::new(tys, files, dest));
|
||||||
|
|
Loading…
Reference in a new issue