From 9d104dfd55afa4477fcc4037b992a8c99ac97431 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Thu, 16 Mar 2017 03:59:52 +0100 Subject: [PATCH] draw: (trivial) remove a unnecessary lp_build_alloca() pointed out by clang (stored value never read) --- src/gallium/auxiliary/draw/draw_llvm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index 104965b..bb08f66 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -1670,8 +1670,6 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant) ind_vec = LLVMBuildInsertElement(builder, ind_vec, index, index, ""); } - fetch_max = lp_build_alloca(gallivm, int32_type, "fetch_max"); - have_elts = LLVMBuildICmp(builder, LLVMIntNE, LLVMConstPointerNull(arg_types[10]), fetch_elts, ""); -- 2.7.4