checkpoint in reconstruction
This commit is contained in:
@@ -338,7 +338,7 @@ impl<M: Module> Backend<M> {
|
||||
let vtype_repr = builder.ins().iconst(types::I64, vtype as i64);
|
||||
|
||||
let casted_val = match vtype {
|
||||
ConstantType::U64 | ConstantType::I64 => val,
|
||||
ConstantType::U64 | ConstantType::I64 | ConstantType::Void => val,
|
||||
ConstantType::I8 | ConstantType::I16 | ConstantType::I32 => {
|
||||
builder.ins().sextend(types::I64, val)
|
||||
}
|
||||
@@ -401,6 +401,7 @@ impl<M: Module> Backend<M> {
|
||||
builder.ins().iconst(types::I64, v as i64),
|
||||
ConstantType::U64,
|
||||
)),
|
||||
Value::Void => Ok((builder.ins().iconst(types::I64, 0i64), ConstantType::Void)),
|
||||
},
|
||||
ValueOrRef::Ref(_, _, name) => match variables.get(&name) {
|
||||
None => Err(BackendError::VariableLookupFailure(name)),
|
||||
|
||||
Reference in New Issue
Block a user