Skip to content

Commit

Permalink
Update compiler/rustc_codegen_llvm/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Stone <[email protected]>
  • Loading branch information
wesleywiser and cuviper authored Nov 30, 2023
1 parent 33762eb commit 1883085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_llvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,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 _));
}
}
Expand Down

0 comments on commit 1883085

Please sign in to comment.