Skip to content

Commit

Permalink
[GVN] Add tests for generic pointees with PtrMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmcm committed Jun 21, 2024
1 parent 7e940ba commit a8ab1ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/intrinsics/mir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,13 @@ define!(
/// generated via the normal `mem::transmute`.
fn CastTransmute<T, U>(operand: T) -> U
);
define!(
"mir_cast_ptr_to_ptr",
/// Emits a `CastKind::PtrToPtr` cast.
///
/// This allows bypassing normal validation to generate strange casts.
fn CastPtrToPtr<T, U>(operand: T) -> U
);
define!(
"mir_make_place",
#[doc(hidden)]
Expand Down

0 comments on commit a8ab1ce

Please sign in to comment.