<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 4, 2016 at 1:06 PM, Simona Simona via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<br><div class="gmail_quote"><div dir="ltr"><div><div><div><div><div><div><div><br></div>I'm trying to add a new instruction after a given instruction in a basic block.<br></div>Until LLVM 3.7, I was using the following code:<br><br>   BB->getInstList().insertAfter(<wbr>I, new_inst);<br>   [where both I and new_inst are Instruction*]<br></div><br></div>In LLVM 3.8 however, the SymbolTableList was created as a wrapper over iplist.<br></div>Could anyone please tell me how I can do the same type of insertion in LLVM 3.8?<br></div></div></div></div></div></blockquote><div><br></div><div>     auto InsertPt = I->getIterator();</div><div>     BB->getInstList().insert(InsertPt, new_inst);</div><div><br></div></div></div></div>