checkpoint
This commit is contained in:
@@ -159,7 +159,7 @@ impl Backend<ObjectModule> {
|
||||
.arg(executable_path)
|
||||
.output()?;
|
||||
|
||||
if !output.stderr.is_empty() {
|
||||
if !output.status.success() {
|
||||
return Err(EvalError::Linker(
|
||||
std::string::String::from_utf8_lossy(&output.stderr).to_string(),
|
||||
));
|
||||
|
||||
@@ -413,7 +413,10 @@ impl<M: Module> Backend<M> {
|
||||
// negative number for us. Which sets the high bits, which makes Cranelift unhappy.
|
||||
// So first we cast the i8 as u8, to get rid of the whole concept of sign extension,
|
||||
// and *then* we cast to i64.
|
||||
Ok((builder.ins().iconst(types::I8, v as u8 as i64), ConstantType::I8))
|
||||
Ok((
|
||||
builder.ins().iconst(types::I8, v as u8 as i64),
|
||||
ConstantType::I8,
|
||||
))
|
||||
}
|
||||
Value::I16(_, v) => Ok((
|
||||
// see above note for the "... as ... as"
|
||||
|
||||
Reference in New Issue
Block a user