mirror of
https://github.com/ziglang/zig.git
synced 2026-01-29 18:55:29 +00:00
build: fix warning on gcc 6.2
This commit is contained in:
parent
64034a3d1a
commit
9dc9e5bfb0
@ -2560,7 +2560,7 @@ static LLVMValueRef gen_if_bool_expr_raw(CodeGen *g, AstNode *source_node, LLVMV
|
||||
LLVMBasicBlockRef then_block = LLVMAppendBasicBlock(g->cur_fn->fn_value, "Then");
|
||||
LLVMBasicBlockRef else_block = LLVMAppendBasicBlock(g->cur_fn->fn_value, "Else");
|
||||
|
||||
LLVMBasicBlockRef endif_block;
|
||||
LLVMBasicBlockRef endif_block = nullptr;
|
||||
bool then_endif_reachable = then_type->id != TypeTableEntryIdUnreachable;
|
||||
bool else_endif_reachable = else_type->id != TypeTableEntryIdUnreachable;
|
||||
if (then_endif_reachable || else_endif_reachable) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user