[intermediate representation] more implementation

This commit is contained in:
Philippe Tillet
2019-01-02 14:37:14 -05:00
parent 24bd2145df
commit 0378b9eb43
7 changed files with 171 additions and 29 deletions

View File

@@ -14,8 +14,8 @@ builder::builder(context &ctx):
// insertion helpers
//===----------------------------------------------------------------------===//
void builder::set_insert_point(instruction *instr){
block_ = instr->get_parent();
void builder::set_insert_point(basic_block::iterator instr){
block_ = (*instr)->get_parent();
insert_point_ = instr;
}