This commit is contained in:
bjorn3 2020-12-17 16:40:10 +01:00
commit 0f57e1cf9b
2 changed files with 5 additions and 2 deletions

View File

@ -75,6 +75,7 @@ fn emit_module(
name, name,
kind, kind,
object: Some(tmp_file), object: Some(tmp_file),
dwarf_object: None,
bytecode: None, bytecode: None,
}, },
work_product, work_product,
@ -111,6 +112,7 @@ fn reuse_workproduct_for_cgu(
name: cgu.name().to_string(), name: cgu.name().to_string(),
kind: ModuleKind::Regular, kind: ModuleKind::Regular,
object, object,
dwarf_object: None,
bytecode: None, bytecode: None,
} }
} }
@ -308,6 +310,7 @@ pub(super) fn run_aot(
name: metadata_cgu_name, name: metadata_cgu_name,
kind: ModuleKind::Metadata, kind: ModuleKind::Metadata,
object: Some(tmp_file), object: Some(tmp_file),
dwarf_object: None,
bytecode: None, bytecode: None,
}) })
} else { } else {

View File

@ -146,12 +146,12 @@ macro atomic_minmax($fx:expr, $cc:expr, <$T:ident> ($ptr:ident, $src:ident) -> $
macro validate_atomic_type($fx:ident, $intrinsic:ident, $span:ident, $ty:expr) { macro validate_atomic_type($fx:ident, $intrinsic:ident, $span:ident, $ty:expr) {
match $ty.kind() { match $ty.kind() {
ty::Uint(_) | ty::Int(_) => {} ty::Uint(_) | ty::Int(_) | ty::RawPtr(..) => {}
_ => { _ => {
$fx.tcx.sess.span_err( $fx.tcx.sess.span_err(
$span, $span,
&format!( &format!(
"`{}` intrinsic: expected basic integer type, found `{:?}`", "`{}` intrinsic: expected basic integer or raw pointer type, found `{:?}`",
$intrinsic, $ty $intrinsic, $ty
), ),
); );