diff options
| author | Wesley Wiser <wwiser@gmail.com> | 2023-11-29 18:00:41 -0600 |
|---|---|---|
| committer | Wesley Wiser <wesleywiser@microsoft.com> | 2023-11-29 18:12:53 -0600 |
| commit | 10110787154154cddfaaacdeebd7a4406223a25b (patch) | |
| tree | df1c6c08ff4d1fdcba41863e0ae0a842cf392828 /compiler/rustc_codegen_llvm/src | |
| parent | 3323e4dc04e57cc64ac77dbff2f6bf50ac6832f0 (diff) | |
| download | rust-10110787154154cddfaaacdeebd7a4406223a25b.tar.gz rust-10110787154154cddfaaacdeebd7a4406223a25b.zip | |
Update compiler/rustc_codegen_llvm/src/lib.rs
Co-authored-by: Josh Stone <cuviper@gmail.com>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/lib.rs b/compiler/rustc_codegen_llvm/src/lib.rs index 09c01eeb69c..915cf31de08 100644 --- a/compiler/rustc_codegen_llvm/src/lib.rs +++ b/compiler/rustc_codegen_llvm/src/lib.rs @@ -470,7 +470,7 @@ impl ModuleLlvm { impl Drop for ModuleLlvm { fn drop(&mut self) { unsafe { - drop(ManuallyDrop::take(&mut self.tm)); + ManuallyDrop::drop(&mut self.tm); llvm::LLVMContextDispose(&mut *(self.llcx as *mut _)); } } |
