mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
build: fix warning on gcc 6.2
This commit is contained in:
1 parent
64034a3d1a
commit
9dc9e5bfb0
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user