diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-09-06 14:09:49 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-09-06 14:09:49 +0000 |
| commit | 9c4fb018cac37099a6e0981aa6248ee039aab42a (patch) | |
| tree | c5c82f12bcb6aec035be1baa9fb104a420f50a0f /compiler/rustc_codegen_gcc/src/common.rs | |
| parent | a594044533b5e309eab7ac6b71f4ba8a909af653 (diff) | |
| download | rust-9c4fb018cac37099a6e0981aa6248ee039aab42a.tar.gz rust-9c4fb018cac37099a6e0981aa6248ee039aab42a.zip | |
Remove dead broken code from const zst handling in backends
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/common.rs')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/common.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_gcc/src/common.rs b/compiler/rustc_codegen_gcc/src/common.rs index ccb6cbbc2c8..aa1c271c31c 100644 --- a/compiler/rustc_codegen_gcc/src/common.rs +++ b/compiler/rustc_codegen_gcc/src/common.rs @@ -158,10 +158,6 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> { None } - fn zst_to_backend(&self, _ty: Type<'gcc>) -> RValue<'gcc> { - self.const_undef(self.type_ix(0)) - } - fn scalar_to_backend(&self, cv: Scalar, layout: abi::Scalar, ty: Type<'gcc>) -> RValue<'gcc> { let bitsize = if layout.is_bool() { 1 } else { layout.size(self).bits() }; match cv { |
