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>
  • Loading branch information
wesleywiser and cuviper committed Nov 30, 2023
1 parent 3323e4d commit 1011078
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 @@ -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 _));
}
}
Expand Down

0 comments on commit 1011078

Please sign in to comment.