aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Watry <[email protected]>2013-11-08 13:59:59 -0600
committerCarl Worth <[email protected]>2014-01-02 15:57:41 -0800
commita4a2f239d7aef09f466927cd506019a14348f256 (patch)
tree8e670829fa063bab2f94c6399348292c4ec93a1b
parent23d290d102ef871443cbd5064ee2a7636839d14e (diff)
radeon/llvm: Free target data at end of optimization
Reviewed-by: Tom Stellard <[email protected]> CC: "10.0" <[email protected]> (cherry picked from commit 767b0f82c37f0370c05335120e50f0a534549109)
-rw-r--r--src/gallium/drivers/radeon/radeon_llvm_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_llvm_util.c b/src/gallium/drivers/radeon/radeon_llvm_util.c
index cf6d21ed71f..2ace91ff4dc 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,