diff options
author | Brian Paul <brianp@vmware.com> | 2010-11-02 14:59:31 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-11-02 14:59:31 -0600 |
commit | bbeed0c76fe91cd1113c92d72f7efd242546f6fb (patch) | |
tree | 28f17ed02fb8b69b22ee3ad9d2db8d4fe1adab7b | |
parent | 71a08153e49b496c8b452b186566c4cc8ae7c491 (diff) |
llvmpipe: move builder assignment
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_setup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_setup.c b/src/gallium/drivers/llvmpipe/lp_state_setup.c index e5f15dde67..8376ecd545 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_state_setup.c @@ -506,7 +506,7 @@ generate_setup_variant(struct gallivm_state *gallivm, LLVMTypeRef func_type; LLVMTypeRef arg_types[7]; LLVMBasicBlockRef block; - LLVMBuilderRef builder; + LLVMBuilderRef builder = gallivm->builder; int64_t t0, t1; if (0) @@ -571,7 +571,6 @@ generate_setup_variant(struct gallivm_state *gallivm, */ block = LLVMAppendBasicBlockInContext(gallivm->context, variant->function, "entry"); - builder = gallivm->builder; LLVMPositionBuilderAtEnd(builder, block); set_noalias(builder, variant->function, arg_types, Elements(arg_types)); |