GSList **nested_in;
LLVMValueRef ex_var;
GHashTable *exc_meta;
- LLVMBasicBlockRef entry_out_bb;
} EmitContext;
typedef struct {
LLVMBuildStore (builder, LLVMConstInt (LLVMInt8Type (), 1, FALSE), LLVMBuildGEP (builder, ctx->lmodule->inited_var, indexes, 2, ""));
LLVMBuildBr (builder, inited_bb);
- ctx->entry_out_bb = inited_bb;
+ ctx->bblocks [cfg->bb_entry->block_num].end_bblock = inited_bb;
builder = ctx->builder = create_builder (ctx);
LLVMPositionBuilderAtEnd (ctx->builder, inited_bb);
LLVMValueRef lhs, rhs;
int nins = 0;
- if (bb == cfg->bb_entry && ctx->entry_out_bb)
- cbb = ctx->entry_out_bb;
- else
- cbb = get_bb (ctx, bb);
+ cbb = get_end_bb (ctx, bb);
builder = create_builder (ctx);
ctx->builder = builder;