r600/llvm: initialize radeon_llvm_binary
authorAaron Watry <awatry@gmail.com>
Thu, 14 Nov 2013 18:17:42 +0000 (12:17 -0600)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 15 Nov 2013 17:53:31 +0000 (09:53 -0800)
commitdd73b99420de17651001e0a4d937f1f66fbef14c
tree33427a7db110038df195f62ac59abf9f41255e03
parent2bc1680665473c648e8b75a98d77be7c3f07379d
r600/llvm: initialize radeon_llvm_binary

use memset to initialize to 0's... otherwise code_size and config_size
could be uninitialized when read later in this method.

It's also hard to do NULL checks on uninitialized pointers.

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
v2: Fix indentation

CC: "10.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/r600/r600_llvm.c