Fix the results of binds problem.
This commit is contained in:
@@ -363,6 +363,10 @@ impl<M: Module> Backend<M> {
|
||||
|
||||
(types::I64, Type::Primitive(PrimitiveType::U64)) => Ok((val, val_type)),
|
||||
|
||||
(types::I64, Type::Primitive(PrimitiveType::Void)) => {
|
||||
Ok((builder.ins().iconst(types::I64, 0), VOID_REPR_TYPE))
|
||||
}
|
||||
|
||||
_ => Err(BackendError::InvalidTypeCast {
|
||||
from: val_type,
|
||||
to: target_type,
|
||||
|
||||
Reference in New Issue
Block a user