aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-12-30 18:34:05 -0500
committerAndrew Kelley <superjoe30@gmail.com>2016-12-30 18:34:05 -0500
commit6bbee194b9e8740e99dad537a6a236bd3142bbae (patch)
treef7fb07f6f101acd74c0bfd433dc641ba6fd85b34 /src/codegen.cpp
parenta9acc8cb4574ce8f1792fbfa9bd93985a6b47f87 (diff)
downloadzig-6bbee194b9e8740e99dad537a6a236bd3142bbae.tar.gz
zig-6bbee194b9e8740e99dad537a6a236bd3142bbae.zip
IR: better basic block dependency detection
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 130fb4f351..7884f52b5f 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -2393,7 +2393,7 @@ static void ir_render(CodeGen *g, FnTableEntry *fn_entry) {
assert(executable->basic_block_list.length > 0);
for (size_t block_i = 0; block_i < executable->basic_block_list.length; block_i += 1) {
IrBasicBlock *current_block = executable->basic_block_list.at(block_i);
- assert(current_block->ref_count > 0);
+ //assert(current_block->ref_count > 0);
assert(current_block->llvm_block);
LLVMPositionBuilderAtEnd(g->builder, current_block->llvm_block);
for (size_t instr_i = 0; instr_i < current_block->instruction_list.length; instr_i += 1) {