Skip to content

Commit 96152c7

Browse files
committed
Fix broken subtree sync
1 parent 7c968a2 commit 96152c7

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

compiler/rustc_codegen_cranelift/src/value_and_place.rs

-17
Original file line numberDiff line numberDiff line change
@@ -95,23 +95,6 @@ impl<'tcx> CValue<'tcx> {
9595
CValue(CValueInner::ByValPair(value, extra), layout)
9696
}
9797

98-
/// For `AggregateKind::RawPtr`, create a pointer from its parts.
99-
///
100-
/// Panics if the `layout` is not a raw pointer.
101-
pub(crate) fn pointer_from_data_and_meta(
102-
data: CValue<'tcx>,
103-
meta: CValue<'tcx>,
104-
layout: TyAndLayout<'tcx>,
105-
) -> CValue<'tcx> {
106-
assert!(layout.ty.is_unsafe_ptr());
107-
let inner = match (data.0, meta.0) {
108-
(CValueInner::ByVal(p), CValueInner::ByVal(m)) => CValueInner::ByValPair(p, m),
109-
(p @ CValueInner::ByVal(_), CValueInner::ByRef(..)) if meta.1.is_zst() => p,
110-
_ => bug!("RawPtr operands {data:?} {meta:?}"),
111-
};
112-
CValue(inner, layout)
113-
}
114-
11598
pub(crate) fn layout(&self) -> TyAndLayout<'tcx> {
11699
self.1
117100
}

0 commit comments

Comments
 (0)