radeonsi: remove unused variables in si_insert_input_ptr
authorMarek Olšák <marek.olsak@amd.com>
Fri, 14 Dec 2018 20:08:50 +0000 (15:08 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 2 Jan 2019 20:01:58 +0000 (15:01 -0500)
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/gallium/drivers/radeonsi/si_shader.c

index 35fee58a9aa21b710f56a110e6a8465fc7f3f127..f64fb2e959f180e8c970fdb75cef44cd1b1fb276 100644 (file)
@@ -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, "");
 }