Skip to content

Commit c3dce60

Browse files
committed
Remove dead broken code from const zst handling in backends
1 parent ecb8613 commit c3dce60

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/common.rs

-4
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,6 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
158158
None
159159
}
160160

161-
fn zst_to_backend(&self, _ty: Type<'gcc>) -> RValue<'gcc> {
162-
self.const_undef(self.type_ix(0))
163-
}
164-
165161
fn scalar_to_backend(&self, cv: Scalar, layout: abi::Scalar, ty: Type<'gcc>) -> RValue<'gcc> {
166162
let bitsize = if layout.is_bool() { 1 } else { layout.size(self).bits() };
167163
match cv {

0 commit comments

Comments
 (0)