diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-c-test/metadata.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/llvm-c-test/metadata.c b/tools/llvm-c-test/metadata.c index ee5b33c9122..b64a696c528 100644 --- a/tools/llvm-c-test/metadata.c +++ b/tools/llvm-c-test/metadata.c @@ -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; } |