authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-09-06 10:45:40-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-09-06 10:45:40-04:00
log9dc9e5bfb02b31584cb110ab034a282d288f1667
tree34c9c20314cb75d7b6688aea4dbbd9ffdfbd7b65
parent64034a3d1aeede8e0a5c8bd44d672a1d7902d981

build: fix warning on gcc 6.2


1 files changed, 1 insertions(+), 1 deletions(-)

src/codegen.cpp+1-1
...@@ -2560,7 +2560,7 @@ static LLVMValueRef gen_if_bool_expr_raw(CodeGen *g, AstNode *source_node, LLVMV...@@ -2560,7 +2560,7 @@ static LLVMValueRef gen_if_bool_expr_raw(CodeGen *g, AstNode *source_node, LLVMV
2560 LLVMBasicBlockRef then_block = LLVMAppendBasicBlock(g->cur_fn->fn_value, "Then");2560 LLVMBasicBlockRef then_block = LLVMAppendBasicBlock(g->cur_fn->fn_value, "Then");
2561 LLVMBasicBlockRef else_block = LLVMAppendBasicBlock(g->cur_fn->fn_value, "Else");2561 LLVMBasicBlockRef else_block = LLVMAppendBasicBlock(g->cur_fn->fn_value, "Else");
25622562
2563 LLVMBasicBlockRef endif_block;2563 LLVMBasicBlockRef endif_block = nullptr;
2564 bool then_endif_reachable = then_type->id != TypeTableEntryIdUnreachable;2564 bool then_endif_reachable = then_type->id != TypeTableEntryIdUnreachable;
2565 bool else_endif_reachable = else_type->id != TypeTableEntryIdUnreachable;2565 bool else_endif_reachable = else_type->id != TypeTableEntryIdUnreachable;
2566 if (then_endif_reachable || else_endif_reachable) {2566 if (then_endif_reachable || else_endif_reachable) {