about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-09-07 07:43:54 +0900
committerGitHub <noreply@github.com>2022-09-07 07:43:54 +0900
commit1d49dcec10b068bf890de239c771976ac3e53b05 (patch)
tree2f64cd9dbf494802d83db7a292141439384a2c56 /compiler/rustc_codegen_llvm/src
parent923dae5c9fffbc31e73fe66ead5b9be45ac5208b (diff)
parent9c4fb018cac37099a6e0981aa6248ee039aab42a (diff)
downloadrust-1d49dcec10b068bf890de239c771976ac3e53b05.tar.gz
rust-1d49dcec10b068bf890de239c771976ac3e53b05.zip
Rollup merge of #101484 - oli-obk:no_zst, r=eddyb
Remove dead broken code from const zst handling in backends

cc `@RalfJung`

found by `@eddyb` in https://github.com/rust-lang/rust/pull/98957#discussion_r963744605
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/common.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_llvm/src/common.rs b/compiler/rustc_codegen_llvm/src/common.rs
index 13e437cfbf7..488ea72c3b7 100644
--- a/compiler/rustc_codegen_llvm/src/common.rs
+++ b/compiler/rustc_codegen_llvm/src/common.rs
@@ -226,10 +226,6 @@ impl<'ll, 'tcx> ConstMethods<'tcx> for CodegenCx<'ll, 'tcx> {
         })
     }
 
-    fn zst_to_backend(&self, _llty: &'ll Type) -> &'ll Value {
-        self.const_undef(self.type_ix(0))
-    }
-
     fn scalar_to_backend(&self, cv: Scalar, layout: abi::Scalar, llty: &'ll Type) -> &'ll Value {
         let bitsize = if layout.is_bool() { 1 } else { layout.size(self).bits() };
         match cv {