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 | c3dce60ac783b997b7527c324b9c9ee30a6ccfd7 (patch) | |
| tree | ea2693e79717dab597d541c06602f78333071a98 | |
| parent | ecb861316ef8749f1ec37675db85e03ac59df215 (diff) | |
| download | rust-c3dce60ac783b997b7527c324b9c9ee30a6ccfd7.tar.gz rust-c3dce60ac783b997b7527c324b9c9ee30a6ccfd7.zip | |
Remove dead broken code from const zst handling in backends
| -rw-r--r-- | src/common.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/common.rs b/src/common.rs index ccb6cbbc2c8..aa1c271c31c 100644 --- a/src/common.rs +++ b/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 { |
