Mesa (master): radeon/llvm: Free target data at end of optimization

Aaron Watry awatry at kemper.freedesktop.org
Mon Dec 23 13:26:51 UTC 2013


Module: Mesa
Branch: master
Commit: 767b0f82c37f0370c05335120e50f0a534549109
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=767b0f82c37f0370c05335120e50f0a534549109

Author: Aaron Watry <awatry at gmail.com>
Date:   Fri Nov  8 13:59:59 2013 -0600

radeon/llvm: Free target data at end of optimization

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

CC: "10.0" <mesa-stable at lists.freedesktop.org>

---

 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,




More information about the mesa-commit mailing list