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 <cuviper@gmail.com>
(cherry picked from commit 1011078)
  • Loading branch information
wesleywiser authored and cuviper committed Dec 1, 2023
1 parent 76e6681 commit 6c45608
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 @@ -471,7 +471,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 6c45608

Please sign in to comment.