radeon/llvm: Free target data at end of optimization
authorAaron Watry <awatry@gmail.com>
Fri, 8 Nov 2013 19:59:59 +0000 (13:59 -0600)
committerAaron Watry <awatry@gmail.com>
Mon, 23 Dec 2013 13:24:50 +0000 (07:24 -0600)
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
CC: "10.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/radeon/radeon_llvm_util.c

index cf6d21ed71fe7aa21aaba9d6941d96eb73bdba00..2ace91ff4dc413102a38b5409fe88fb14c435b5b 100644 (file)
@@ -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,