summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-07-22 15:59:49 -0400
committerMarek Olšák <[email protected]>2019-07-22 20:57:44 -0400
commitcb9eb1834d8fee07d15c407829923d8b074c89ec (patch)
treefcd4130783523140211975e2e7c4997622af22ea
parent850619117e35932e1a7ca290b0d0c2a0c9f1e7fa (diff)
radeonsi: fix warning: ‘ret’ may be used uninitialized
Reviewed-by: Dave Airlie <[email protected]>
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 6fd7a56dbcd..679fa4edabd 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -6771,7 +6771,7 @@ static void si_build_wrapper_function(struct si_shader_context *ctx,
initial_num_out_sgpr = num_out_sgpr;
/* Now chain the parts. */
- LLVMValueRef ret;
+ LLVMValueRef ret = NULL;
for (unsigned part = 0; part < num_parts; ++part) {
LLVMValueRef in[48];
LLVMTypeRef ret_type;