Displaying 1 result from an estimated 1 matches for "allocavsetarray".
2016 Aug 25
2
InstList insert depreciated?
...rt an instruction immediately after the first instruction
within a basic block, I first get all instructions in my basic block
in an instruction container list. Once that is done, I insert my new
instruction in the instruction container list using InstList.insert().
// code
void FSliceModulePass::allocaVSetArray(void) {
auto &B = F->getEntryBlock();
auto &IList = B.getInstList();
auto &FirstI = *IList.begin();
auto TaintVar = new AllocaInst(IntPtrTy, FirstI);
IList.insert(FirstI, TaintVar); // ERROR
After migrating to 3.8.1, It gives me the following error:
ERROR:
/home/shehb...