search for: vst_it

Displaying 1 result from an estimated 1 matches for "vst_it".

Did you mean: dst_ip
2009 Aug 05
2
[LLVMdev] Dominator error inserting instructions into BasicBlock
...ike so: //Remove the existing terminator first_block->getTerminator()->eraseFromParent(); //Get the symbol table so that we know what to store ValueSymbolTable* vst = first_block->getValueSymbolTable(); IRBuilder <> builder(first_block); for (ValueSymbolTable::iterator vst_it = vst->begin(); vst_it != vst->end(); vst_it++) { AllocaInst* store_var = builder.CreateAlloca(type, 0,my_name.c_str()); builder.CreateStore(symbol, store_var, true); } //Put a terminator on the block builder.CreateRetVoid(); This builds fine, but I get dominator issu...