We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42c3d37 commit 7646d49Copy full SHA for 7646d49
src/librustc_codegen_llvm/common.rs
@@ -170,8 +170,7 @@ impl CodegenCx<'ll, 'tcx> {
170
pub fn const_get_real(&self, v: &'ll Value) -> Option<(f64, bool)> {
171
unsafe {
172
if self.is_const_real(v) {
173
- #[allow(deprecated)]
174
- let mut loses_info: llvm::Bool = ::std::mem::uninitialized();
+ let mut loses_info: llvm::Bool = 0;
175
let r = llvm::LLVMConstRealGetDouble(v, &mut loses_info);
176
let loses_info = if loses_info == 1 { true } else { false };
177
Some((r, loses_info))
0 commit comments