Update compiler/rustc_codegen_llvm/src/lib.rs
Co-authored-by: Josh Stone <cuviper@gmail.com>
This commit is contained in:
parent
3323e4dc04
commit
1011078715
@ -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 _));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user