diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-12-17 16:40:10 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-12-17 16:40:10 +0100 |
| commit | 0f57e1cf9b2a717126382d6befccff98f5c8e8b6 (patch) | |
| tree | 5c12efd128a1f01073c003178c8661f43f003d52 | |
| parent | 44b331047dd5ab70d2e1e8671aeb8ee799a3b38d (diff) | |
| parent | 5f6c32af159c427fedb6fd25dfd9b6933affe068 (diff) | |
| download | rust-0f57e1cf9b2a717126382d6befccff98f5c8e8b6.tar.gz rust-0f57e1cf9b2a717126382d6befccff98f5c8e8b6.zip | |
Sync from rust caeb3335c052f286f6e7257ac0ff21e4f73fd8c5
| -rw-r--r-- | src/driver/aot.rs | 3 | ||||
| -rw-r--r-- | src/intrinsics/mod.rs | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/driver/aot.rs b/src/driver/aot.rs index c443483be88..cc79a4234eb 100644 --- a/src/driver/aot.rs +++ b/src/driver/aot.rs @@ -75,6 +75,7 @@ fn emit_module( name, kind, object: Some(tmp_file), + dwarf_object: None, bytecode: None, }, work_product, @@ -111,6 +112,7 @@ fn reuse_workproduct_for_cgu( name: cgu.name().to_string(), kind: ModuleKind::Regular, object, + dwarf_object: None, bytecode: None, } } @@ -308,6 +310,7 @@ pub(super) fn run_aot( name: metadata_cgu_name, kind: ModuleKind::Metadata, object: Some(tmp_file), + dwarf_object: None, bytecode: None, }) } else { diff --git a/src/intrinsics/mod.rs b/src/intrinsics/mod.rs index 4cfd4569760..2910af8c2b7 100644 --- a/src/intrinsics/mod.rs +++ b/src/intrinsics/mod.rs @@ -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) { match $ty.kind() { - ty::Uint(_) | ty::Int(_) => {} + ty::Uint(_) | ty::Int(_) | ty::RawPtr(..) => {} _ => { $fx.tcx.sess.span_err( $span, &format!( - "`{}` intrinsic: expected basic integer type, found `{:?}`", + "`{}` intrinsic: expected basic integer or raw pointer type, found `{:?}`", $intrinsic, $ty ), ); |
