gallium/radeon: only dispose locally created target machine in radeon_llvm_compile
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 14 Dec 2015 21:10:31 +0000 (16:10 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 18 Dec 2015 17:17:40 +0000 (12:17 -0500)
commit0a6a17b9d72c57f0840d91756924632fee91f2c2
treec9ec6e9e132512db92c385097e165eca3b48c6ef
parent61e5f8d0734233ed6c321ec03edec63e9d0ae92e
gallium/radeon: only dispose locally created target machine in radeon_llvm_compile

Unify the cleanup paths of the function rather than duplicating code.

Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/radeon_llvm_emit.c