about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/common.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-07-05 03:33:03 +0000
committerbors <bors@rust-lang.org>2019-07-05 03:33:03 +0000
commitbaab1914ec9a9742776a8147780947b48fddf54d (patch)
treef3b289eca1a26917641165eaa2c06340441648da /src/librustc_codegen_llvm/common.rs
parent4ca7a349da6869286d94fd8159eb225629ffba5f (diff)
parent007d87f1719e2fcf2ff36aef8b6dc866fa276386 (diff)
downloadrust-baab1914ec9a9742776a8147780947b48fddf54d.tar.gz
rust-baab1914ec9a9742776a8147780947b48fddf54d.zip
Auto merge of #62376 - Mark-Simulacrum:1.38-nightly, r=alexcrichton
Switch master to 1.38
Diffstat (limited to 'src/librustc_codegen_llvm/common.rs')
-rw-r--r--src/librustc_codegen_llvm/common.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_codegen_llvm/common.rs b/src/librustc_codegen_llvm/common.rs
index f21f203fcc9..9fdc93c3ff0 100644
--- a/src/librustc_codegen_llvm/common.rs
+++ b/src/librustc_codegen_llvm/common.rs
@@ -170,6 +170,7 @@ impl CodegenCx<'ll, 'tcx> {
     pub fn const_get_real(&self, v: &'ll Value) -> Option<(f64, bool)> {
         unsafe {
             if self.is_const_real(v) {
+                #[allow(deprecated)]
                 let mut loses_info: llvm::Bool = ::std::mem::uninitialized();
                 let r = llvm::LLVMConstRealGetDouble(v, &mut loses_info);
                 let loses_info = if loses_info == 1 { true } else { false };