]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_llvm/src/common.rs
Rollup merge of #101503 - spastorino:add-debug-calls, r=compiler-errors
[rust.git] / compiler / rustc_codegen_llvm / src / common.rs
index 63d3bb40a3fe0c448463f9d32253b984b7476424..488ea72c3b77991a7146f71ea24aac66cc981653 100644 (file)
@@ -21,7 +21,6 @@
 
 use libc::{c_char, c_uint};
 use std::fmt::Write;
-use tracing::debug;
 
 /*
 * A note on nomenclature of linking: "extern", "foreign", and "upcall".
@@ -227,10 +226,6 @@ fn const_to_opt_u128(&self, v: &'ll Value, sign_ext: bool) -> Option<u128> {
         })
     }
 
-    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 {