Skip to content

Commit a8ab1ce

Browse files
committed
[GVN] Add tests for generic pointees with PtrMetadata
1 parent 7e940ba commit a8ab1ce

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/src/intrinsics/mir.rs

+7
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,13 @@ define!(
444444
/// generated via the normal `mem::transmute`.
445445
fn CastTransmute<T, U>(operand: T) -> U
446446
);
447+
define!(
448+
"mir_cast_ptr_to_ptr",
449+
/// Emits a `CastKind::PtrToPtr` cast.
450+
///
451+
/// This allows bypassing normal validation to generate strange casts.
452+
fn CastPtrToPtr<T, U>(operand: T) -> U
453+
);
447454
define!(
448455
"mir_make_place",
449456
#[doc(hidden)]

0 commit comments

Comments
 (0)