Displaying 1 result from an estimated 1 matches for "store_var".
Did you mean:
store_tr
2009 Aug 05
2
[LLVMdev] Dominator error inserting instructions into BasicBlock
...raseFromParent();
//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 issues when I try to test it
with opt.
I'm sure that I just don't understand all...