summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/radeon
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2016-01-24 01:07:58 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2016-01-24 01:07:58 +0000
commit3fce1b3d241bfc89eaf38612d3a9ea7e8207d0eb (patch)
tree8ce841449b87cbdf4115527493b0459b2253f35e /lib/mesa/src/gallium/drivers/radeon
parentbe0545197373e5331df04aed2a7b42ce7c71c70c (diff)
Import Mesa 11.0.9
Diffstat (limited to 'lib/mesa/src/gallium/drivers/radeon')
-rw-r--r--lib/mesa/src/gallium/drivers/radeon/radeon_llvm_emit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mesa/src/gallium/drivers/radeon/radeon_llvm_emit.c b/lib/mesa/src/gallium/drivers/radeon/radeon_llvm_emit.c
index 1a66a55ee..2008799db 100644
--- a/lib/mesa/src/gallium/drivers/radeon/radeon_llvm_emit.c
+++ b/lib/mesa/src/gallium/drivers/radeon/radeon_llvm_emit.c
@@ -194,8 +194,8 @@ unsigned radeon_llvm_compile(LLVMModuleRef M, struct radeon_shader_binary *binar
if (mem_err) {
fprintf(stderr, "%s: %s", __FUNCTION__, err);
FREE(err);
- LLVMDisposeTargetMachine(tm);
- return 1;
+ rval = 1;
+ goto out;
}
if (0 != rval) {
@@ -211,6 +211,7 @@ unsigned radeon_llvm_compile(LLVMModuleRef M, struct radeon_shader_binary *binar
/* Clean up */
LLVMDisposeMemoryBuffer(out_buffer);
+out:
if (dispose_tm) {
LLVMDisposeTargetMachine(tm);
}