mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Fix build breakage caused by memory leaks in llvm-c-test
I accidently introduced those in r227319. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227339 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
4925c39604
commit
dd4a5df6e1
1 file changed
+4
@@ -22,6 +22,8 @@ int add_named_metadata_operand(void) {
|
||||
// This used to trigger an assertion
|
||||
LLVMAddNamedMetadataOperand(m, "name", LLVMMDNode(values, 1));
|
||||
|
||||
LLVMDisposeModule(m);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -35,5 +37,7 @@ int set_metadata(void) {
|
||||
LLVMGetMDKindID("kind", 4),
|
||||
LLVMMDNode(values, 1));
|
||||
|
||||
LLVMDisposeBuilder(b);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user