Skip to content

Commit 4246269

Browse files
committed
[examples][ORC] Add missing call to LLVMDisposeBuilder to example.
The missing call was pointed out in https://llvm.org/PR56953, though it's not the focus of that issue.
1 parent 51bc82d commit 4246269

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/examples/OrcV2Examples/OrcV2CBindingsIRTransforms/OrcV2CBindingsIRTransforms.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ LLVMOrcThreadSafeModuleRef createDemoModule(void) {
4747
LLVMValueRef SumArg1 = LLVMGetParam(SumFunction, 1);
4848
LLVMValueRef Result = LLVMBuildAdd(Builder, SumArg0, SumArg1, "result");
4949
LLVMBuildRet(Builder, Result);
50+
LLVMDisposeBuilder(Builder);
5051
LLVMOrcThreadSafeModuleRef TSM = LLVMOrcCreateNewThreadSafeModule(M, TSCtx);
5152
LLVMOrcDisposeThreadSafeContext(TSCtx);
5253
return TSM;

0 commit comments

Comments
 (0)