[Mesa-dev] [PATCH 6/8] radeon/llvm: Free target data at end of optimization

Aaron Watry awatry at gmail.com
Thu Dec 12 14:47:22 PST 2013


---
 src/gallium/drivers/radeon/radeon_llvm_util.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/radeon/radeon_llvm_util.c b/src/gallium/drivers/radeon/radeon_llvm_util.c
index cf6d21e..2ace91f 100644
--- a/src/gallium/drivers/radeon/radeon_llvm_util.c
+++ b/src/gallium/drivers/radeon/radeon_llvm_util.c
@@ -84,6 +84,7 @@ static void radeon_llvm_optimize(LLVMModuleRef mod)
 	LLVMRunPassManager(pass_manager, mod);
 	LLVMPassManagerBuilderDispose(builder);
 	LLVMDisposePassManager(pass_manager);
+	LLVMDisposeTargetData(TD);
 }
 
 LLVMModuleRef radeon_llvm_get_kernel_module(LLVMContextRef ctx, unsigned index,
-- 
1.8.3.2



More information about the mesa-dev mailing list