From: Marek Olšák Date: Fri, 14 Dec 2018 20:08:50 +0000 (-0500) Subject: radeonsi: remove unused variables in si_insert_input_ptr X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=edfca1f8dc92ce89895b9429e376e03b4876ea23;p=mesa.git radeonsi: remove unused variables in si_insert_input_ptr Tested-by: Dieter Nützel --- diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 35fee58a9aa..f64fb2e959f 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -3256,9 +3256,7 @@ si_insert_input_ptr(struct si_shader_context *ctx, LLVMValueRef ret, unsigned param, unsigned return_index) { LLVMBuilderRef builder = ctx->ac.builder; - LLVMValueRef ptr, lo, hi; - - ptr = LLVMGetParam(ctx->main_fn, param); + LLVMValueRef ptr = LLVMGetParam(ctx->main_fn, param); ptr = LLVMBuildPtrToInt(builder, ptr, ctx->i32, ""); return LLVMBuildInsertValue(builder, ret, ptr, return_index, ""); }