Skip to content

Commit

Permalink
Merge branch 'master' into pub
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDan64 committed Jul 27, 2024
2 parents 915d589 + c3f6e05 commit fdab07c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use llvm_sys::core::{
LLVMDisposeModule, LLVMDumpModule, LLVMGetFirstFunction, LLVMGetFirstGlobal, LLVMGetLastFunction,
LLVMGetLastGlobal, LLVMGetModuleContext, LLVMGetModuleIdentifier, LLVMGetNamedFunction, LLVMGetNamedGlobal,
LLVMGetNamedMetadataNumOperands, LLVMGetNamedMetadataOperands, LLVMGetTarget, LLVMPrintModuleToFile,
LLVMPrintModuleToString, LLVMSetDataLayout, LLVMSetModuleIdentifier, LLVMSetTarget,
LLVMPrintModuleToString, LLVMSetDataLayout, LLVMSetModuleIdentifier, LLVMSetTarget, LLVMDisposeMessage
};
#[llvm_versions(7..)]
use llvm_sys::core::{LLVMAddModuleFlag, LLVMGetModuleFlag};
Expand Down Expand Up @@ -740,6 +740,8 @@ impl<'ctx> Module<'ctx> {
return unsafe { Err(LLVMString::new(err_str)) };
}

unsafe { LLVMDisposeMessage(err_str) };

Ok(())
}

Expand Down

0 comments on commit fdab07c

Please sign in to comment.