Update compiler/rustc_codegen_llvm/src/lib.rs

Co-authored-by: Josh Stone <cuviper@gmail.com>
This commit is contained in:
Wesley Wiser 2023-11-29 18:00:41 -06:00 committed by Wesley Wiser
parent 3323e4dc04
commit 1011078715

View File

@ -470,7 +470,7 @@ fn llmod(&self) -> &llvm::Module {
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 _));
}
}