We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
&mut
1 parent 44f5ec7 commit 61932e1Copy full SHA for 61932e1
compiler/rustc_codegen_llvm/src/back/owned_target_machine.rs
@@ -99,7 +99,7 @@ impl Drop for OwnedTargetMachine {
99
// llvm::LLVMRustCreateTargetMachine OwnedTargetMachine is not copyable so there is no
100
// double free or use after free.
101
unsafe {
102
- llvm::LLVMRustDisposeTargetMachine(self.tm_unique.as_mut());
+ llvm::LLVMRustDisposeTargetMachine(self.tm_unique.as_ptr());
103
}
104
105
0 commit comments